ios - ABNewPersonViewController imagePicker orientation and crash issue -
my ipad app supports landscape orientation. have presented abnewpersonviewcontroller (in navigationcontroller apple docs suggestion) modally , in land scape.
now,
- when trying "add photo" imagepicker presented modally in portrait against requirement.
- then, after adding photo, tapping on image shows popover 3 buttons (- choose photo, edit photo, delete photo).
clicking first 2 buttons crashes app following error message:
*** terminating app due uncaught exception 'uiviewcontrollerhierarchyinconsistency', reason: 'a view can associated @ 1 view controller @ time! view <abactionsheet: 0x9bbfde0; baseclass = uiactionsheet; frame = (0 0; 272 156); opaque = no; animations = { opacity=<cabasicanimation: 0xaa73d30>; }; layer = <calayer: 0x9bd0370>> associated <_uiactionsheethostingcontroller: 0x9bb1000>. clear association before associating view <_uiactionsheethostingcontroller: 0xaa7a610>.'
any solutions 1 , 2 ? & regards auk
the exception states that
"'a view can associated @ 1 view controller @ time! "
you presenting uiviewcontroller presenting again uipopovercontroller . after clicking @ index of button trieng present controller , it's not possible .'
try dismissviewcontroller
method according stuff.
Comments
Post a Comment