I have a View based application that navigates between all views properly. And now I have to add a UITableView to this application, I am unable to do that.
I could add a UITableView, thats fine, but no idea about adding data source to it. I searched a lot and found only examples begin with navigation based applications. I have created array and I have displayed a blank table view also. How to add add contents to table cells, should I have to override those methods in navigation based applications?
I have a UITableView on a UIView like:
UITableView * aTableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];
mainView = aTableView;
Is it possible, any idea? thanks.
EDIT:
mainView = aTableView;
is modified as
[mainView addSubview:aTableView];