Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)viewDidLoad {
- [super viewDidLoad];
- [Request getProfileWithDelegate:(id<RequestDelegate>)self userInfo:@1];
- }
- #pragma mark -
- - (void) requestDidFinishParent:(id)data error:(NSError *)error userInfo:(id)info {
- if (error) {
- NSLog(@"%@", error);
- NSString * message = @"Unknown error.";
- if (error.code == 1) {
- message = [error domain];
- }
- CustomAlertView * alert = [[CustomAlertView alloc] initWithTitle:message message:nil delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
- [alert show];
- [APP_DELEGATE.globalIndicator hideAnimated:YES identifier:@"BaseVC"];
- return;
- }else{
- if([info isEqual:@1]){
- [Request getGalleryWithDelegate:(id<RequestDelegate>)self userInfo:@1];
- else if([info isEqual:@2]){
- [APP_DELEGATE.globalIndicator hideAnimated:YES identifier:@"BaseVC"];
- }
- }
- }
Add Comment
Please, Sign In to add comment