How to keep tab bar at the bottom on both iPhone 4 and iPhone 5?

iphone_zps457f691b.png iphone5_zps08c2acc1.png

 

 

Above are screenshots of the app I’m developing. The position of the tab bar sits correctly on the bottom on the iPhone and iPhone 4 views.  Because of the different dimensions though, the tab bar is too high on the iPhone 5.  

 

How would I keep the tab bar at the bottom of the screen on both the iPhone 4 and the iPhone 5?

display.actualContentHeight can help you, it’ll return the device height, try it on the simulator.

https://docs.coronalabs.com/api/library/display/actualContentHeight.html

display.actualContentHeight can help you, it’ll return the device height, try it on the simulator.

https://docs.coronalabs.com/api/library/display/actualContentHeight.html