Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UIImagePickerControllerを使用すると、カメラを使用したり、ビュー内からライブラリから選択したりできるようになりますか?sourceTypeのどちらかを選択する必要があるようです。ライブラリビューの選択にボタンを追加してカメラに切り替える方法はありませんか?
これは自分で実装する必要があります。単純なUISegmentedControlを作成でき、値が変更されると、UIImagePickerControllerのソースが変更されます。