ストーリーボードを使用するプロジェクトがあります。最初の ViewController は、2 つの ViewController をホストする UITabBarController であり、最初の ViewController は UIImagePickerController です。
UIImagePickerController をどこで設定する必要がありますか (sourceType などを設定します)?
ストーリーボードを使用するプロジェクトがあります。最初の ViewController は、2 つの ViewController をホストする UITabBarController であり、最初の ViewController は UIImagePickerController です。
UIImagePickerController をどこで設定する必要がありますか (sourceType などを設定します)?
アプリデリゲートではどうですか?
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
UITabBarController *tabBarController = (UITabBarController *)[self.window rootViewController];
// Per OP, first view controller in the tab bar is the UIImagePickerController.
UIImagePickerController *imagePicker = [tabBarController.viewControllers objectAtIndex:0];
// Your configuration code here:
// imagePicker.sourceType = <your code here>
return YES;
}