Create a gif with UIImages
I am referring to this post . I am trying to make a gif file with the images created by screenshot. I am using a timer to create the snapshot of the screen,so that I get required amount of frames that could be used to create a gif. I take snaphots every 0.1 seconds (I will later end this timer after 3 seconds). Here is my code to take snapshots of my UIView: -(void)recordScreen{ self.timer= [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(takeSnapShot) userInfo:nil repeats:YES]; } -(void)takeSnapShot{ //capture the screenshot of the uiimageview and save it in camera