UITapGestureRecognizer でタップを検知するとき、シングルタップとダブルタップの両方に対応するために2つ登録する。 UITapGestureRecognizer* g1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; g1.numberOfTapsRequired = 1; g1.numberOfTouchesRequired = 1; g1.delegate = self; [self.view addGestureRecognizer:g1]; UITapGestureRecognizer* g2 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selecto
One recent iPhone design mockup called for a glowing effect for a UIButton. This can be accomplished with images, however I needed a series of buttons to have the same glow effect, and it can easily be accomplished with Core Graphics. The first step is to include the Core Graphics headers: #import <QuartzCore/QuartzCore.h> Next, the effect is achieved by using a shadow with no offset (meaning the
In this fairly short article, we’ll take a look at how to create a simple UIButton subclass which represents a pill-shaped two coloured button. During this article, I’m assuming you already have your iOS project set up and know your basic Objective-C, and your way around Xcode. Feel free to ask for more detailed instructions in the comments and I’ll be happy to help you out. Without further ado..
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く