How to search on a array and display the items on tableview using a searchbar?
- by skiria
Hi, I would like to search on a arrays hierachy and display the results on a tableview. The tableview is empty when we run the app and the, when we search it, the data is written.
What's the best way to do this? I read tutorials wich explains how it search on a tableview, but i want to search in all of arrays hierachy.
I have 3 classes
class video
//iVars to allocate the video metadata
NSInteger videoID;
NSString *nameVideo;
NSString *nameCategory;
NSString *nameTopic;
NSString *user;
NSString *date;
NSString *description;
NSString *urlThumbnail;
NSString *urlVideo;
class Topic
NSInteger TopicId;
NSString nameTopic;
NSMutableArray videos;
class Category
NSInteger CategoryId;
NSString nameCategory
NSMutableArray topics
AppDelegate
NSMutableArray categories