简体   繁体   中英

Model View Controller + nib files

In objective c (iphone) are the nib files (xib) the View part of the MVC? When you set a property of an object in IB where is that actually stored in the xib file?

Yes, in general your View layer is represented by your nib files.

Properties that you declare in your own controllers are not 'stored' in nib files; they are a part of your controller instances. View objects in nibs will have their own properties, which are stored in memory when the objects have been recreated out of the nibs. Values that you set in view objects using the IB inspectors are stored in the nib, and are set on the objects when you load the nib.

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