Hi I'm Uploading image form my device to server in the the photo library if user click the cancel button it has to go back to the main view controller but its going to the image pick view please tell to how to go back to main view controller from the photo library I'm using the story board.
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker{
[self dismissViewControllerAnimated:NO completion:nil];
}
The above i have used its not working please tell how to make it done.
Thanks