Skip to content

Commit

Permalink
Fix some deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mallorypaine committed Sep 5, 2015
1 parent cf7ea15 commit 2096e82
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,12 @@ - (void)loadView {
// Configure the navigation item
UINavigationItem *navigationItem = [self navigationItem];

UIBarButtonItem *resetBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Reset" style:UIBarButtonItemStyleBordered target:self action:@selector(_reset)];
UIBarButtonItem *resetBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Reset" style:UIBarButtonItemStylePlain target:self action:@selector(_reset)];
[navigationItem setLeftBarButtonItem:resetBarButtonItem];

UISegmentedControl *methodSegmentedControl = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:@"Conventional", @"Image Table", nil]];
[methodSegmentedControl setSelectedSegmentIndex:0];
[methodSegmentedControl addTarget:self action:@selector(_methodSegmentedControlValueChanged:) forControlEvents:UIControlEventValueChanged];
[methodSegmentedControl setSegmentedControlStyle:UISegmentedControlStyleBar];
[methodSegmentedControl sizeToFit];
[navigationItem setTitleView:methodSegmentedControl];

Expand Down Expand Up @@ -152,7 +151,6 @@ - (void)loadView {
UISegmentedControl *imageFormatStyleSegmentedControl = [[UISegmentedControl alloc] initWithItems:imageFormatStyleSegmentedControlTitles];
[imageFormatStyleSegmentedControl setSelectedSegmentIndex:0];
[imageFormatStyleSegmentedControl addTarget:self action:@selector(_imageFormatStyleSegmentedControlValueChanged:) forControlEvents:UIControlEventValueChanged];
[imageFormatStyleSegmentedControl setSegmentedControlStyle:UISegmentedControlStyleBar];
[imageFormatStyleSegmentedControl setApportionsSegmentWidthsByContent:userInterfaceIdiomIsPhone];
[imageFormatStyleSegmentedControl sizeToFit];

Expand Down

0 comments on commit 2096e82

Please sign in to comment.