Skip to content

Commit

Permalink
Fixed: Same UIBarButtonItemStyle issue as in PaymentKit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Cohen committed Mar 22, 2014
1 parent 145f41d commit 6464f2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Example/PaymentViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ - (void)viewDidLoad
[super viewDidLoad];

self.title = @"Add Card";
if([self respondsToSelector:@selector(setEdgesForExtendedLayout:)])
if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)]) {
self.edgesForExtendedLayout = UIRectEdgeNone;
}

// Setup save button
UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithTitle:@"Save" style:0 target:self action:@selector(save:)];
UIBarButtonItem *saveButton = [[UIBarButtonItem alloc] initWithTitle:@"Save" style:UIBarButtonItemStyleDone target:self action:@selector(save:)];
saveButton.enabled = NO;
self.navigationItem.rightBarButtonItem = saveButton;

Expand Down

0 comments on commit 6464f2d

Please sign in to comment.