Friday, 15 April 2011

uipopovercontroller - UIViewAlertForUnsatisfiableConstraints when presenting popover controller on iOS8 iPad -



uipopovercontroller - UIViewAlertForUnsatisfiableConstraints when presenting popover controller on iOS8 iPad -

uialertcontroller *alert = [uialertcontroller alertcontrollerwithtitle:@"what do?" message:@"" preferredstyle:uialertcontrollerstyleactionsheet]; [alert addaction:...] //left out brevity of post uipopoverpresentationcontroller *pop = [alert popoverpresentationcontroller]; pop.sourceview = self.view; pop.sourcerect = self.view.frame; pop.permittedarrowdirections = uipopoverarrowdirectionany; [self presentviewcontroller:alert animated:true completion:^{ }];

the methods in uiconstraintbasedlayoutdebugging category on uiview listed in may helpful. 2014-10-22 13:33:17.966 project[2995:40175] unable simultaneously satisfy constraints. @ to the lowest degree 1 of constraints in next list 1 don't want. seek this: (1) @ each constraint , seek figure out don't expect; (2) find code added unwanted constraint or constraints , prepare it. (note: if you're seeing nsautoresizingmasklayoutconstraints don't understand, refer documentation uiview property translatesautoresizingmaskintoconstraints) ( "=44)]>", "", "", "", "" )

will effort recover breaking constraint =44)]>

what mean? >=44?

i trying nowadays uialertcontroller on ipad, ios8

you'll want add together symbolic breakpoint. apple provides excellent guide on how this.

open breakpoint navigator cmd+7

click add together button in lower left

select add together symbolic breakpoint...

where says symbol type in uiviewalertforunsatisfiableconstraints can treat other breakpoint, turning on , off, adding actions, or log messages.

ios8 uipopovercontroller nslayoutconstraint uialertcontroller

No comments:

Post a Comment