UIAlertController *alert =
[UIAlertController alertControllerWithTitle:@"What would you like to do?"
message:@""
preferredStyle:UIAlertControllerStyleActionSheet];
[alert addAction:...] //left out for 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 the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful. 2014-10-22 13:33:17.966 Project[2995:40175] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "=44)]>", "", "", "", "" )
Will attempt to recover by breaking constraint =44)]>
What does this mean? What is the >=44?
I am just trying to present an UIAlertController on iPad, iOS8