I have a problem with UIMenuControlleron my iPhone 6 when I use standard display mode and the device is in landscape mode. On iPhone 6 Plus, the problem is in both modes. Perhaps this depends on the screen resolution.
In this case, it UIMenuControllerwill be truncated left and / or right. It seems that it UIMenuControllercan have maximum boundaries, as if the phone was in portrait mode.
See the UIMenuControllertruncated (landscape scheme iPhone6):
http://imageshack.com/a/img631/8470/ozlaGe.jpg "iPhone6 ββlandscape"
For me, this is similar to the error of iOS8 + iPhone 6. The code did not change for a long time and worked. In the enlarged display mode, it UIMenuControllerwill display correctly, as on all other iPhones / iPads incl. iOS7
... define UIMenuItems....
[self becomeFirstResponder];
UIMenuController *menu = [UIMenuController sharedMenuController];
[menu setMenuItems:items];
.. define frame...
[menu setTargetRect:frame inView:self];
[menu setMenuVisible:YES animated:YES];
Fixed: see comment from Iliya Barenboim
source
share