实现拍照时,画面闪一下效果
UIView *flashView = [[UIView alloc] initWithFrame:[[self view] frame]];
[flashView setBackgroundColor:[UIColor whiteColor]];[[[self view] window] addSubview:flashView];
[UIView animateWithDuration:.4f
animations:^{
[flashView setAlpha:0.f];
}
completion:^(BOOL finished){
[flashView removeFromSuperview];
[flashView release];
}
];