Custom Overlay - Simple Example

-(void)viewWillAppear:(BOOL)animated{
 
 UIImagePickerController *imagePicker = [[UIImagePickerController 

alloc] init];
 imagePicker.sourceType =  UIImagePickerControllerSourceTypeCamera;
 imagePicker.mediaTypes =  [NSArray arrayWithObject:(NSString *)

kUTTypeMovie];
 imagePicker.delegate = self;
 //UISaveVideoAtPath
 imagePicker.allowsImageEditing = NO;
 [self.view addSubview:imagePicker.view];
 [imagePicker viewWillAppear:YES];
 
 CGRect overlayFrame = CGRectMake(0, 380, 320, 44);
 //UILabel *lbl=[[UILabel alloc]init];
 UIView *baseView = [[[UIView alloc] init] autorelease];
 baseView.backgroundColor =[UIColor greenColor];  
 //lbl.text=@"dfgfdgfd";
 baseView.frame=overlayFrame;
 //view.delegate = self;
 //view.picker = picker;
 //[view customize];
 imagePicker.cameraOverlayView = baseView;
 
 
 [self presentModalViewController:imagePicker animated:YES]; 


}
Ebook Download
View all
Learn
View all