[iPhone Dev] Camera Capture Flash
// Capture Flash
UIView *flashView = [[UIView alloc] initWithFrame:[self._videoPreviewLayer frame]];
[flashView setBackgroundColor:[UIColor blackColor]];
[flashView setAlpha:0.f];
[[[self view] window] addSubview:flashView];
[UIView animateWithDuration:.4f
animations:^{
[flashView setAlpha:1.f];
[flashView setAlpha:0.f];
}
completion:^(BOOL finished){
[flashView removeFromSuperview];
[flashView release];
}
];
댓글
댓글 쓰기