Skip to content

Commit

Permalink
The alert that appears after tapping the menu buttons now shows the c…
Browse files Browse the repository at this point in the history
…ell index where the menu appears
  • Loading branch information
boctor committed Apr 14, 2011
1 parent 6e7a7b7 commit 645ddfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SideSwipeTableView/Classes/RootViewController.m
Expand Up @@ -114,9 +114,11 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
#pragma mark Button touch up inside action
- (IBAction) touchUpInsideAction:(UIButton*)button
{
NSIndexPath* indexPath = [tableView indexPathForCell:sideSwipeCell];

NSUInteger index = [buttons indexOfObject:button];
NSDictionary* buttonInfo = [buttonData objectAtIndex:index];
[[[[UIAlertView alloc] initWithTitle:[buttonInfo objectForKey:@"title"]
[[[[UIAlertView alloc] initWithTitle:[NSString stringWithFormat: @"%@ on cell %d", [buttonInfo objectForKey:@"title"], indexPath.row]
message:nil
delegate:nil
cancelButtonTitle:nil
Expand Down

0 comments on commit 645ddfc

Please sign in to comment.