Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For me this tutorial guided me to achieve what i want.So, i think to share the link.May be someone gets benefited.</p> <p><a href="http://www.raywenderlich.com/13541/how-to-create-an-app-like-instagram-with-a-web-service-backend-part-22" rel="nofollow">http://www.raywenderlich.com/13541/how-to-create-an-app-like-instagram-with-a-web-service-backend-part-22</a></p> <p>and this piece of code helps me out..</p> <pre><code>-(void) takePhoto{ BOOL camera = [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]; if(camera) { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; [[picker navigationBar]setBarStyle:UIBarStyleDefault]; picker.sourceType = UIImagePickerControllerSourceTypeCamera; [picker setDelegate:self]; [self presentViewController:picker animated:YES completion:NULL]; [picker release]; actionSheetbool = false; } else { UIAlertView* cameraAlert = [[UIAlertView alloc]initWithTitle:@"Sorry!!" message:@"Camera not found." delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil]; [cameraAlert show]; [cameraAlert release]; } } -(void)photoLibrary{ if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypeSavedPhotosAlbum]) { UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; imagePicker.allowsEditing = YES; [self presentViewController:imagePicker animated:YES completion:nil]; [imagePicker release]; actionSheetbool = false; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload