开发者

Add alert or action sheet to UITableView during swiping to delete

开发者 https://www.devze.com 2023-01-11 01:40 出处:网络
I want to pass an object to the action sheet from the declaration of the UIActionSheet, how to do it?开发者_运维知识库

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

精彩评论

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