From 041ab56a45573b02406c5a0bfea5d5a8e717dd59 Mon Sep 17 00:00:00 2001 From: Kyle Chan Date: Sun, 23 Aug 2020 19:15:36 -0700 Subject: [PATCH] Drop iOS 8 suppport --- FBTweak/_FBTweakCategoryViewController.m | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/FBTweak/_FBTweakCategoryViewController.m b/FBTweak/_FBTweakCategoryViewController.m index ce112b87..d166de6f 100644 --- a/FBTweak/_FBTweakCategoryViewController.m +++ b/FBTweak/_FBTweakCategoryViewController.m @@ -11,8 +11,9 @@ #import "FBTweakCategory.h" #import "_FBTweakCategoryViewController.h" #import +#import "PEUIAlertView.h" -@interface _FBTweakCategoryViewController () +@interface _FBTweakCategoryViewController () @end @implementation _FBTweakCategoryViewController { @@ -85,11 +86,11 @@ - (void)_done - (void)_reset { - UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Are you sure?" - message:@"Are you sure you want to reset your tweaks? This cannot be undone." - delegate:self - cancelButtonTitle:@"Cancel" - otherButtonTitles:@"Reset", nil]; + PEUIAlertView *alert = [[PEUIAlertView alloc] initWithTitle:@"Are you sure?" + message:@"Are you sure you want to reset your tweaks? This cannot be undone." + delegate:self + cancelButtonTitle:@"Cancel" + otherButtonTitles:@"Reset", nil]; [alert show]; } @@ -151,7 +152,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath [_delegate tweakCategoryViewController:self selectedCategory:category]; } -- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex +- (void)alertView:(PEUIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { if (buttonIndex != alertView.cancelButtonIndex) { [_store reset];