objective c - iphone custom photo album view in inside of the appication(thumbnail) -
is possible implement photolibrary view custom thumbnail view default 1 grid list..(ie.,for example listing in uitableview)can u please me out..i strucked 1 past 1 week....
read alassetslibrary here code:
-(void)viewdidload{ void (^assetenumerator)(struct alasset *, nsuinteger, bool *) = ^(alasset *result, nsuinteger index, bool *stop) { if(result != null) { //add result array uitableview } }; void (^assetgroupenumerator)(struct alassetsgroup *, bool *) = ^(alassetsgroup *group, bool *stop) { if(group != nil) { [group enumerateassetsusingblock:assetenumerator]; } }; alassetslibrary *library = [[alassetslibrary alloc] init]; [library enumerategroupswithtypes: alassetsgroupsavedphotos usingblock: assetgroupenumerator failureblock: ^(nserror *error) { nslog(@"failure: %@", error); }]; }
Comments
Post a Comment