Ios-xib (Interface builder,view)-can ' t change view size (view cannot resize)

Source: Internet
Author: User

Many times, we custom TableView, CollectionView cell, also sometimes we want to customize the window Xib, but after the creation of Xib, its height, width cannot be modified.

Then the question comes, how can we make our custom xib wide and high modifiable:

When creating a xib, separate view in the project,

Method:

Default simulated metric in size:inferred (inference), the view height, width is not changed;

modified to Size:freeform, now our xib view width can be modified.

Learn and reprint: http://iphonedevsdk.com/forum/iphone-sdk-development/21586-interface-builder-cant-change-view-size.html

Ios-xib (Interface builder,view)-can ' t change view size (view cannot resize)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.