タップのカウントの取り方を紹介したいと思います。
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
UITouch *touch = [touches anyObject];
NSInteger tcnt = [touch tapCount];
if (tcnt == 2) // 二回タップ
{
・・・内容
}
・・・たったこれだけなんです。
No related posts.
Name
Mail (will not be published)
Website
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>