how can i go for iphone photo album at the time of particular view loading?
-
10-10-2019 - |
Pergunta
I want to go to iphone photo album at the time of clicking the tabBarItem(that is at the time of particular view loading)..For this what should i do...I have no idea about this..please anyone help me out to do this...
Thank You in Advance
Solução
Try folloing code in ur application and assing action that button......
-(IBAction) pickImage
{
ipc = [[UIImagePickerController alloc] init];
ipc.delegate = self;
if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera])
{
ipc.sourceType = UIImagePickerControllerSourceTypeCamera;
}
else {
ipc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
}
[self presentModalViewController:ipc animated:YES];
}
if u dine than vote me
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow