Guest User

Untitled

a guest
Feb 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. - (void)viewDidLoad {
  2. [super viewDidLoad];
  3. [Request getProfileWithDelegate:(id<RequestDelegate>)self userInfo:@1];
  4. }
  5.  
  6. #pragma mark -
  7. - (void) requestDidFinishParent:(id)data error:(NSError *)error userInfo:(id)info {
  8. if (error) {
  9. NSLog(@"%@", error);
  10. NSString * message = @"Unknown error.";
  11. if (error.code == 1) {
  12. message = [error domain];
  13. }
  14. CustomAlertView * alert = [[CustomAlertView alloc] initWithTitle:message message:nil delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
  15. [alert show];
  16. [APP_DELEGATE.globalIndicator hideAnimated:YES identifier:@"BaseVC"];
  17. return;
  18. }else{
  19. if([info isEqual:@1]){
  20. [Request getGalleryWithDelegate:(id<RequestDelegate>)self userInfo:@1];
  21. else if([info isEqual:@2]){
  22. [APP_DELEGATE.globalIndicator hideAnimated:YES identifier:@"BaseVC"];
  23. }
  24. }
  25. }
Add Comment
Please, Sign In to add comment