开发者

Iphone SDK Help me for a request to show only one category from data plist !

I look for a friends who can help me for long time ! I'm beginner and I try to understand... HOW I can make a request to show all data (from plist) in SAME category (NOT ALL !) for exemple : show only the movie have : genre = Action

Please help me ... Thanks a lot ! Excuse my bad english !

Is it in this code I must make it or an other ???

  • (id)initWithLibraryName:(NSString *)libraryName { if (self = [super init]) { libraryPlist = libraryName; libraryContent = [[NSArray alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:libraryPlist ofType:@"pl开发者_运维知识库ist"]];

you can download the source for help me on : http://www.iphonedevcentral.com/wp-content/uploads/2009/08/MyDVDLibrary03.zip PLEASE SAY ME HOW I CAN DO IT !

I will want to know the exact CODE LINE and WHERE I must write it ! For see a the list of product are in Action.

THANKS VERY VERY MUCH


I'm not going to download the sample project and go through the code for you, but you want to do is use NSArray's filteredArrayWithPredicate method to filter the objects in libraryContent. This is a pretty decent tutorial for using predicates.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜