Taking photos using the Iphone camera

- (IBAction) buttonname
{
   UIImagePickerController * picker = [[UIImagePickerController alloc] init];
   picker.delegate = self;
   picker.sourceType = UIImagePickerControllerSourceTypeCamera;
   [self presentModalViewController:picker animated:YES];
}

- (void)imagePickerController:(UIImagePickerController *)UIPicker didFinishPickingImage:(UIImage *)info editingInfo:(NSDictionary *)dictionary
{
    [UIPicker dismissModalViewControllerAnimated:YES];
    imageview.image=info;
}

Browse More Popular Posts

Leave a Comment