ios - set UIPickerView relative to screen -


i have uipickerview in view hidden offscreen, , when button pressed, pickerview animates in (from bottom, animates up). when user done pickerview, click "done" button in view, , view animates offscreen. works flawlessly, except when screen in landscape orientation. coordinates different when device in portrait. there way make work either orientation?

pictures of situation:

pickerview: http://i.stack.imgur.com/yn6kd.png

pickerview on rotate: http://i.stack.imgur.com/zfgq1.png

as can see when rotated, pickerview isn't visible.

you use percentage rather fixed pixels. eg self.view.frame.size.height * 0.5 opposed hardcoding 384

either or use modal view?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -