ios - Animated image from plist -
i'm trying load value plist base name of animated image want create. essentially, want plist contain name image-.jpg, , use code rest.
i've gotten idea here display animated gif in ios
and i'm trying mix plist play. far i've gotten this:
imagename.image = [uiimage animatedimagenamed:[[myarray objectatindex:indexvalue] valueforkey:@"imagename" duration:1.0f]]; the valueforkey image-.jpg, when ios runs animatedimagenamed image-1.jpg, image-2.jpg, etc.
my issue xcode displays error @ animatedimagenamed, saying there's no known method selector.
how can fix this?
i think issue placement of ']' :) may statement should
imagename.image = [uiimage animatedimagenamed:[[myarray objectatindex:indexvalue] valueforkey:@"imagename"] duration:1.0f]
Comments
Post a Comment