Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Function in leftside VC
- - (void)buttonClicked
- {
- if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
- {
- self.calNotesView = [[CalNotesViewController alloc]initWithNibName:@"CalNotesViewController_iPad" bundle:nil];
- NSMutableArray *testarray = [[NSMutableArray alloc]initWithObjects:@"Rocky",@"John", nil];
- [self.calNotesView loadTableWithArray:testarray];
- }
- }
- - (void)loadTableWithArray:(NSMutableArray *)array
- {
- m_Array = [[NSMutableArray alloc]init];
- for(int i = 0 ;i <[array count]; i++)
- {
- [m_Array addObject:[array objectAtIndex:i]];
- }
- NSLog(@"Count:%d",m_Array.count);
- [m_tableView reloadData];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement