我开发了一个消息应用,想在类似iMessage应用的弹窗中打开一个相册界面:
我怎样才能实现这个功能?
最佳答案
希望这对你有用
//初始化图像选择器并添加到弹出 Controller
UIImagePickerController* imagePickerController= [[UIImagePickerController alloc] init];
imagePickerController.delegate=self;
imagePickerController.sourceType= UIImagePickerControllerSourceTypePhotoLibrary;
popoverController= [[UIPopoverController alloc] initWithContentViewController:imagePickerController];
[popoverController presentPopoverFromBarButtonItem:sender permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
关于ios - 如何在 iOS 的弹出窗口中打开相机胶卷?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17446509/