0

Have an UIScrollView (mainScrollView) that is 838 pt height, so it's bigger than both retina 3.5 and retina 4 displays height, and the user can so scroll it down to see all content.

Want to display an animated UIPickerView from the bottom, and it should stay always on the bottom of the screen, independent of screen height (retina 3.5 or 4) or mainScrollView (838 pt) height.

Is there a way to get the "window" or "screen" height and add UIPickerView considering the measures for the different screens? What should be the correct approach to accomplish this?

enter image description here

Marcos Reboucas
  • 3,409
  • 1
  • 29
  • 35

1 Answers1

2

This will return the frame of screen

CGRect screenFrame = [[UIScreen mainScreen] applicationFrame];

With this you can position your picker accordingly !!!

arun.s
  • 1,528
  • 9
  • 12