cezarywojcik / CWPopup

CWPopup category to present popup view controllers
MIT License
289 stars 62 forks source link

Popup UIVieController to a specific location but not Center of Screen only #6

Closed simplelife-patrick closed 10 years ago

simplelife-patrick commented 10 years ago

If possible it can support popup UIVieController to a specific location but not center of screen only?

simplelife-patrick commented 10 years ago

Because sometime a poped UIViewController will trigger keyboard which probably cover the UIViewController if it's just in the center of screen.

cezarywojcik commented 10 years ago

There is currently no support for a custom location. I might try to add this in the future, but I'm far too busy to do so at the moment. If you want, feel free to fork/add the feature yourself and send a PR.

bagusflyer commented 10 years ago

You can just change the source code by yourself. For example: change the y position in

like:

    y = ([UIScreen mainScreen].bounds.size.height - frame.size.height)/2-90.0f;