我是在一个用户把我的囚室放在双管上时,介绍“国际行动”:
4. 在单元Init的认可:
UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc]
initWithTarget:self
action:@selector(handleDoubleTap:)];
[doubleTap setNumberOfTapsRequired:2];
[self addGestureRecognizer:doubleTap];
[doubleTap release];
代表处理主机:
- (void)handleDoubleTap:(UITapGestureRecognizer *)recognizer {
NSLog(@"double oo");
[delegate handleDoubleTapp];
}
现在,作为我的可贵意见书记员的代表将介绍“国际行动”:
-(void)handleDoubleTapp{
UIActionSheet *actionSheet = [[[UIActionSheet alloc]
initWithTitle:nil
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"Reply", @"Retweet", @"Direct Message", nil] autorelease];
[actionSheet showInView:self.parentViewController.tabBarController.view];
}
}
My UITableViewController 执行情报行动 适当的分配方法。
问题:
- Not all areas of the actionsheet are responsive
- Clicking on a button presents a modal view, but the actionsheet does not get dismissed
- When buttons are able to be clicked, they don t highlight