I’m trying to initialize a tableview with an image, name and surname of each user that I have stored in a NSMutableArray.
In this mutablearray I save a class that I created to store users data and its schema is as follows:
ResultSearchController{
NSInteger *userID;
NSString *userName;
NSString *userSurname;
NSString *userThumb;
}
I have read the documentation of TableView but I still have doubts and problems to display the data in TableView (seems rather complicated to use such objects). Could you help me to get started with this?
Thanks!!
I guess you have a Custom UITableViewCell for that.
Simply use in
cellForRowAtIndexPathdelegate of UITableView (to set the image):-Similarly you can do in the same manner to set other control elements.
It’s just an example of how you can do.I am assuming you have stored the data over some class objects and adding it to an NSMtableArray.