Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iphonejudy

macrumors 6502
Original poster
Sep 12, 2008
301
1
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?

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;
	 
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.