我正在使用 LLSimpleCamera 。我正在捕获图像并将图像存储在数组中,但它看起来并不好。? 显示捕获图像的任何其他方式,看起来像 snapchat 配置文件。
这是 m 使用的代码。
-(void)captureimages
{
counter++;
if (counter<4)
{
[self.camera capture:^(LLSimpleCamera *camera, UIImage *image,NSDictionary *metadata, NSError *error) {
if(!error)
{
animationView1.hidden = YES;
[imageArray addObject:image];
[self performSelector:@selector(captureimages) withObject:self afterDelay:1.0 ];
}
else
{
NSLog(@"An error has occured: %@", error);
}
}
exactSeenImage:YES];
[self dismissModalViewControllerAnimated:YES];
NSArray *animationArray=[NSArray arrayWithArray:imageArray];
animationView.animationImages=animationArray;
animationView.animationDuration=3;
animationView.animationRepeatCount=0;
[animationView startAnimating];
}
else
{
animationView.hidden = NO;
[self.camera.view removeFromSuperview];
[self.camera removeFromParentViewController];
view1.hidden = YES;
}
}
提前致谢。!