tags:

views:

98

answers:

1

I want to add one view on to the camera.I have use below code for this.But not working.

picker.sourceType = UIImagePickerControllerSourceTypeCamera; //or album  
[picker.cameraOverlayView addSubview:self.view];
[self presentModalViewController:picker  animated:NO];

How it is possible?Anything is wrong in my code?

A: 

picker.cameraOverlayView is nil by default, so instead you want to do picker.cameraOverlayView = self.view instead of the way you have it.

David Maymudes
Thanks.Now its working perfectly.
MD