Permalink
Browse files

Use UIBarButtonSystemItemEdit.

  • Loading branch information...
1 parent 6de4907 commit 42271ae996fb1326ae54e10702c8a9d1720d304c @cknitt committed Feb 4, 2012
Showing with 7 additions and 11 deletions.
  1. +7 −11 Classes/ShareKit/UI/SHKShareMenu.m
@@ -59,14 +59,12 @@ - (id)initWithStyle:(UITableViewStyle)style
self.title = SHKLocalizedString(@"Share");
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel
- target:self
- action:@selector(cancel)] autorelease];
-
- self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:SHKLocalizedString(@"Edit")
- style:UIBarButtonItemStyleBordered
- target:self
- action:@selector(edit)] autorelease];
+ target:self
+ action:@selector(cancel)] autorelease];
+ self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemEdit
+ target:self
+ action:@selector(edit)] autorelease];
}
return self;
}
@@ -330,11 +328,9 @@ - (void)save
[self.tableView setEditing:NO animated:YES];
[self rebuildTableDataAnimated:YES];
- [self.navigationItem setRightBarButtonItem:[[[UIBarButtonItem alloc] initWithTitle:SHKLocalizedString(@"Edit")
- style:UIBarButtonItemStyleBordered
+ [self.navigationItem setRightBarButtonItem:[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemEdit
target:self
- action:@selector(edit)] autorelease] animated:YES];
-
+ action:@selector(edit)] autorelease] animated:YES];
}
@end

0 comments on commit 42271ae

Please sign in to comment.