Search code examples
iphoneiosxcodeiphone-5

adjust table view size in iphone 5


I have created an universal app and i run it in iphone 5 simulator i.e. iphone retina 4. All is working fine but a table view size is not appropriate.Actually, i have that table view completely above an image view. When i run in iphone retina 4, the image sets itself according to the retina 4 display but the table view height extends beyond that image view. I have set the table view size as 160 in the inspector window and when i print that in log, it says 248.0000. I am unable to figure out where the problem is. Please help me.

Thanks in advance.


Solution

  • Check for Auto Resizing

    You can resize view by this.

    And please uncheck 'Use Autolayout' Option. bcoz it'll restrict you with specific margins.

    Hopefully it works.