I have problem with TableView its empty.
In (.h) file:
@interface TableViewController : UITableViewController{
NSMutableArray *coursArray; }
In (.m) file:
In viewDidLoad
[coursArray addObject:[[NSMutableDictionary alloc]initWithObjectsAndKeys:@"AR111",@"courseCode",@"Arabic Communication Skills (I)",@"courseName", nil]];
[coursArray addObject:[[NSMutableDictionary alloc]initWithObjectsAndKeys:@"AR112",@"courseCode",@"Arabic Communication Skills (II)",@"courseName", nil]];
and in numberOfRowsInSection
return [coursArray count];
and in cellForRowAtIndexPath
cell.textLabel.text = [[coursArray objectAtIndex:indexPath.row]objectForKey:@"courseCode"];
So whats wrong please help me :)
allocandinitof coursArray itself (e.g.coursArray = [[NSMutableArray alloc] init]), too, in viewDidLoad, too, because you're not showing that here.