iOS Photo Viewer with RSS -
i have rss-feed title en url of photo, , want build in pictures. best way this? utilize mwphotobrowser , way insert photo's is:
self.photos = [nsmutablearray array]; [photos addobject:[mwphoto photowithfilepath:[[nsbundle mainbundle] pathforresource:@"photo2l" oftype:@"jpg"]]]; [photos addobject:[mwphoto photowithurl:[nsurl urlwithstring:@"http://farm4.static.flickr.com/3629/3339128908_7aecabc34b.jpg"]]]; [photos addobject:[mwphoto photowithurl:[nsurl urlwithstring:@"http://farm4.static.flickr.com/3590/3329114220_5fbc5bc92b.jpg"]]];
how rss?
thanks!
if want create photo viewer rss feed, suggest looking mwfeedparser. can grab title , url of each item , display them you'd like.
1 - using mwfeedparser, parse feed:
//feedurl photo rss feed feedparser = [[mwfeedparser alloc] initwithfeedurl:feedurl];
2 - in mwfeedparser delegate method didparsefeeditem, add together item's link photo array:
-(void)feedparser:(mwfeedparser *)parser didparsefeeditem:(mwfeeditem *)item{ if (item) [photos addobject:[mwphoto photowithurl:[nsurl urlwithstring:item.link]]]; }
now photos array contains of mwphoto's, whatever you'd them!
ios rss photo-gallery
No comments:
Post a Comment