0

I made an app (using storyboard) that fits the screen of iPhone 6. So when I tested it in iPhone 5 it becomes different.

I enabled auto layout and size classes but I don't know how I can use them to make this work.

How can I make the buttons (Event, Dialled, Missed, and Received) resize to fit on other iPhone screen sizes.

enter image description here

Jongers
  • 595
  • 1
  • 9
  • 29
  • 1
    Select your blue view. and add constraints to it like here discussed in detail: http://stackoverflow.com/a/34368263/4272498 – Irfan Mar 03 '16 at 03:55
  • basics of autolayout and constraints http://stackoverflow.com/questions/31799888/constraints-to-take-care-of-different-iphone-ipad-sizes-for-images-xcode-7-beta/31800662#31800662 – Shebin Koshy Mar 03 '16 at 04:04
  • Is the blue bar a subview of the table view, or a sibling of it? Post a screen shot of that scene's section in the document outline, with all the disclosure triangles turned down. – rob mayoff Mar 03 '16 at 04:09
  • @Irfan you saved me. Thank you very much. – Jongers Mar 03 '16 at 04:37

1 Answers1

0

Looks like the UITableView is is missing some basic constraints. Or there are other constraints, that block others. (i.e. fixed width constraint)

This is how it should be: constrains

Simple.

Daniel
  • 1,473
  • 3
  • 33
  • 63