UIImagePickerController inside UIPopoverController doesn't show Cancel button on iOS7

前端 未结 3 1167
甜味超标
甜味超标 2021-01-25 10:13

I\'m using UIImagePickerController inside a UIPopoverController to select image just from photo albums. When I launch app on device running iOS 8, the Cancel button on the top r

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-25 10:34

    In my case, UIImagePickerController was not showing its cancel button . So I tried adding this line to code:

    pickerController.navigationBar.barStyle = UIBarStyleDefault;
    

    And this worked for me.Try setting color of Cancel button like this

     pickerController.navigationBar.tintColor = [UIColor blackColor];
    

    Try using this code and let me know if it helps you.

提交回复
热议问题