Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions FBTweak/_FBTweakCategoryViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
#import "FBTweakCategory.h"
#import "_FBTweakCategoryViewController.h"
#import <MessageUI/MessageUI.h>
#import "PEUIAlertView.h"

@interface _FBTweakCategoryViewController () <UITableViewDataSource, UITableViewDelegate, UIAlertViewDelegate, MFMailComposeViewControllerDelegate>
@interface _FBTweakCategoryViewController () <UITableViewDataSource, UITableViewDelegate, PEUIAlertViewDelegate, MFMailComposeViewControllerDelegate>
@end

@implementation _FBTweakCategoryViewController {
Expand Down Expand Up @@ -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];
}

Expand Down Expand Up @@ -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];
Expand Down