开发者

Add alert or action sheet to UITableView during swiping to delete

I want to pass an object to the action sheet from the declaration of the UIActionSheet, how to do it?开发者_运维知识库

-(void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger) buttonIndex{


  1. Create a property in your header.
  2. Set it whenever you create your object.
  3. Then reference it in the didDismissWithButotnIndex you posted.

Easy. Peasy. Japanesy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜