How to search on a array and display the items on tableview using a searchbar?
Posted
by skiria
on Stack Overflow
See other posts from Stack Overflow
or by skiria
Published on 2010-05-14T22:58:50Z
Indexed on
2010/05/14
23:04 UTC
Read the original article
Hit count: 237
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
© Stack Overflow or respective owner