Xcode – Interface Builder – where is the documentation

interface-builderxcode

I have many times looked for XCode documentation for things like (1.) icons in the editor intellisense. My latest documentation problem is in Interface Builder:

When you have a .xib file. Then you have "Placeholders" for "File's Owner" and the UIView itself – (2.) Where should I set "custom class" & (3.) what is "Inherited From Target"

Can you help me help finding informations for XCode UI/IB documentations?

Best Answer

I can help on the "Inherited from Target" option of Custom Class.

My project has a variety of targets (free, paid, home free, home paid) and I have a class that is only used in the home variants.

When I just added my class and let it default to Module I kept getting an error at run time that the class was not defined in the storyboard.

By checking the "Inherited from Target" option the module gets compiled in for the targets I use it in (Target Memberships for swift file and everything works.

I am assuming this was an optimization so the module would not be included when not needed - but that is just a guess.

Needless to say this wasted an entire day to figure out - hope it helps some others.