ios - Fade in and out between images in NSmutableArrray -



ios - Fade in and out between images in NSmutableArrray -

i know based on code, how can add together fade in fade out effect between each images in nsarray. using these images background. changing background without fade in , out looks horrible.

here code.

- (void)viewdidload { [super viewdidload]; nsarray *imagenames = @[@"1.jpg", @"2.png", @"3.png", @"4.png", @"5.png"]; nsmutablearray *images = [[nsmutablearray alloc] init]; (int = 0; < imagenames.count; i++) { [images addobject:[uiimage imagenamed:[imagenames objectatindex:i]]]; } // normal animation uiimageview *animationimageview = [[uiimageview alloc] initwithframe:self.view.bounds]; animationimageview.animationimages = images; animationimageview.animationduration = 9; [self.background addsubview:animationimageview]; [animationimageview startanimating];}

ios iphone xcode animation uiimageview

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -