简体   繁体   中英

Uiview size in xib file is not normal

When create a uiviewcontroller file in my xcode the uiview size becomes so larger than the default iphone screen size like this 在此处输入图片说明

I can't figure out why it occurs and how resize to the default size of iphone.

Make sure while creating class this should be done

  1. Target for iPad - Uncheck
  2. with XIB for user interface - Check

在此处输入图片说明

Yeah you can do it easily. Click on the view in XIB go the fourth tab on the properties window (right side) Under simulated metrics the first accordian check the size parameter (would be 'none' by default) and change it to 'free form' when you want XIB of custom size.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM