Reputation: 295
I am creating a UIPopoverController
from the application delegate and I want to center it on the window, how ca I do that?
Upvotes: 0
Views: 186
Reputation: 9544
You can specify the rectangle that it is anchored to when you display it. Just specify an rectangle and direction that guarantees it will be displayed in the position you want.
It does sound like you may be doing something that would be best done by presenting a custom UIView as a new subview instead of using a popover. The popover will always have the little arrow coming off the side.
Upvotes: 2