From 2096e82c6619a3170a33fdfd03705b5f24638fcf Mon Sep 17 00:00:00 2001 From: Mallory Paine Date: Sat, 5 Sep 2015 09:57:04 -0700 Subject: [PATCH] Fix some deprecation warnings --- .../FastImageCacheDemo/Classes/FICDViewController.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/FastImageCache/FastImageCacheDemo/Classes/FICDViewController.m b/FastImageCache/FastImageCacheDemo/Classes/FICDViewController.m index 3495167..f12b789 100644 --- a/FastImageCache/FastImageCacheDemo/Classes/FICDViewController.m +++ b/FastImageCache/FastImageCacheDemo/Classes/FICDViewController.m @@ -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]; @@ -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];