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{
- Create a property in your header.
- Set it whenever you create your object.
- Then reference it in the didDismissWithButotnIndex you posted.
Easy. Peasy. Japanesy.
精彩评论