How to set delay before taking a picture by iphone camera? I use UIImagePickerController. Is there some simple way for it?
Asked
Active
Viewed 6,264 times
2
-
See also ["Blocks instead of performSelector:withObject:afterDelay:"](http://stackoverflow.com/questions/4007023/blocks-instead-of-performselectorwithobjectafterdelay). – outis Feb 19 '11 at 09:21
1 Answers
1
call a method with your "take the pic" after a delay, try this:
[self performSelector:@selector(myMethodToTakeThePhoto) withObject:nil afterDelay:3.5];
-(void)myMethodToTakeThePhoto{
// take the photo
}

meronix
- 6,175
- 1
- 23
- 36