Guest User

array

a guest
Dec 7th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "TableViewController.h"
  2.  
  3. @interface TableViewController ()
  4.  
  5. @end
  6.  
  7. @implementation TableViewController
  8.  
  9. @synthesize currentTest = _currentTest;
  10.  
  11. - (void)viewDidLoad
  12. {
  13.     [super viewDidLoad];
  14. }
  15.  
  16. -(id)init
  17. {
  18.     if ((self = [super init]))
  19.         _currentTest = [[NSMutableArray alloc] init];
  20.     return self;
  21. }
  22.  
  23.  
  24. - (void)keepCurrentArray:(id)object
  25. {
  26.     [_currentTest addObject:@"one"];
  27.     [_currentTest addObject:@"two"];
  28.     [_currentTest addObject:object];
  29.     NSLog(@"My Array is:%@",_currentTest);
  30. }
  31.  
  32.  
  33. - (void)didReceiveMemoryWarning
  34. {
  35.     [super didReceiveMemoryWarning];
  36. }
  37.  
  38. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  39. {
  40. }
  41. @end
Advertisement
Add Comment
Please, Sign In to add comment