Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios - 3.5" layout cutting off bottom of screen

I have an app that is cutting the bottom toolbar off for a 3.5" screen (the add or update photos bar in screenshots below). For a 4" screen everything works perfectly.

This only happens when i run the app in the simulator. The preview in the storyboard looks fine both for 4" and 3.5".enter image description hereenter image description hereenter image description hereenter image description here

I do suspect auto-layout issues, but I really don't know how to approach the problem as it's fine in the storyboard view. What is the correct approach is using autolayout to make the tableview shrink with less vertical size?

thanks for any help!

like image 887
phil swenson Avatar asked Jan 04 '14 04:01

phil swenson


1 Answers

First this is you need to Uncheck the option in storyboard which is by default enable or checked in iOS 7

Set edges of view

End then if problem is not solved you need to enable the Auto-layout in storyboard by checking the option shown in below images

select tab

&

Enable autolayout

Update 1

If you want to apply constraint follow these steps:

Step 1

Step 2

Step 3

& if it gives any warning or error add other required constraints

like image 163
The iOSDev Avatar answered Nov 20 '22 05:11

The iOSDev