I am new in iOS and making a lightweight application. I am taking two textfield entries from one view controller and storing them in NSDictionary. I am transferring those data in NSArray. Now I want to display those data from NSArray to table view. I am using this line of code:
cell.textLabel.text = [self.myArray objectAtIndex:indexPath.row];
But my app is crashing when cursor comes at this line. Help is appreciated. Thanks in advance.
Tarun Kumar
12-Aug-2015For UITableView you have to define at least 2 methods:
It seems your method numberOfRowsInSection is not implemented.
Try to add this:
Of course your ViewController have to be delegated for UITableViewDataSource and UItableViewDelegate.