Advertisement
rockingeric

Untitled

Feb 10th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  SAMasterViewController.m
  3. //  SearchApp
  4. //
  5. //  Created by Eric Martins on 16/01/13.
  6. //  Copyright (c) 2013 Eric Martins. All rights reserved.
  7. //
  8.  
  9. #import "SAMasterViewController.h"
  10.  
  11. #import "SAProfileViewController.h"
  12.  
  13. @interface SAMasterViewController () {
  14.     NSMutableArray *listOfItems;
  15. }
  16. @end
  17.  
  18. @implementation SAMasterViewController
  19.  
  20. -(void)goToUserProfile :(id) sender
  21. {
  22.     UITapGestureRecognizer *gesture = (UITapGestureRecognizer *) sender;
  23.  
  24.     SAProfileViewController *controller = [[SAProfileViewController alloc] init];
  25.    
  26.     controller.userId = gesture.view.tag; // << HERE COMES THE ERROR
  27.    
  28.     [self.navigationController pushViewController:controller animated:YES];
  29. }
  30.  
  31. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement