I used the below code from picking a vide from camera roll.
But i always getting nil in the path1.
Can anyone please tel me the solution?
But i always getting nil in the path1.
Can anyone please tel me the solution?
Code:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
NSURL *paths1= [info objectForKey:UIImagePickerControllerMediaURL];
NSLog(@"Paths1=%@",paths1);
NSString *mypaths = [NSString stringWithContentsOfURL:[NSURL URLWithString:paths1]];
NSLog(@"MY Path=%@",mypaths);
[self dismissModalViewControllerAnimated:YES];
btnmsg.hidden=NO;
btnupload.hidden=NO;
txtpath.text=mypaths;
}