specktro
specktro

Reputation: 295

UIPopoverController in application window

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

Answers (1)

Dancreek
Dancreek

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

Related Questions