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:
pickerview on rotate:
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
Post a Comment