Skip to content

Commit

Permalink
AFNetworking 2 —> 3, identical OK buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyLB committed May 28, 2017
1 parent 682af15 commit ec6d282
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions piwigo/AllCategoriesViewController.m
Expand Up @@ -131,7 +131,7 @@ -(void)setRepresenativeForCategoryId:(NSInteger)categoryId
{
[AlbumService setCategoryRepresentativeForCategory:categoryId
forImageId:self.imageId
OnCompletion:^(AFHTTPRequestOperation *operation, BOOL setSuccessfully) {
OnCompletion:^(NSURLSessionTask *task, BOOL setSuccessfully) {
if(setSuccessfully)
{
PiwigoAlbumData *category = [[CategoriesData sharedInstance] getCategoryById:categoryId];
Expand All @@ -148,7 +148,7 @@ -(void)setRepresenativeForCategoryId:(NSInteger)categoryId

[UIAlertView showWithTitle:NSLocalizedString(@"categoryImageSetSuccess_title", @"Image Set Successful")
message:NSLocalizedString(@"categoryImageSetSuccess_message", @"The image was set successfully for the album image")
cancelButtonTitle:NSLocalizedString(@"alertOkButton", @"Ok")
cancelButtonTitle:NSLocalizedString(@"alertOkButton", @"OK")
otherButtonTitles:nil
tapBlock:^(UIAlertView *alertView, NSInteger buttonIndex) {
[self.navigationController popViewControllerAnimated:YES];
Expand All @@ -158,7 +158,7 @@ -(void)setRepresenativeForCategoryId:(NSInteger)categoryId
{
[self showSetRepresenativeError:nil];
}
} onFailure:^(AFHTTPRequestOperation *operation, NSError *error) {
} onFailure:^(NSURLSessionTask *task, NSError *error) {
[self showSetRepresenativeError:[error localizedDescription]];
}];
}
Expand All @@ -171,7 +171,7 @@ -(void)showSetRepresenativeError:(NSString*)message
}
[UIAlertView showWithTitle:NSLocalizedString(@"categoryImageSetError_title", @"Image Set Error")
message:bodyMessage
cancelButtonTitle:NSLocalizedString(@"alertOkButton", @"Ok")
cancelButtonTitle:NSLocalizedString(@"alertOkButton", @"OK")
otherButtonTitles:nil
tapBlock:nil];
}
Expand Down

0 comments on commit ec6d282

Please sign in to comment.