Notes from iPhoneDevCampNYC InterfaceBuilder session
basics
- gui interface for UI elements
- benefits of using IB
- graphically add interface elements to your app
- draw connections between ui elems and controllers
- quickly move, add, delete elems
- isolate ui from app code
- creates a .nib file -> contains ::
- objects
- attributes
- relationships
- proxy objects -> "placeholder for an object that is used by the nib file but not stored in the nib file"
- first responder -> target for messages (if not set, message is sent to other objects in the chain)
windows and views
- one window per app
- multiple views
integration
- IB builds the View (in MVC terms)
- IB discovers outlets and actions of Controllers
- IB automatically detects changes in the XCode project classes and delegates connections
basic use
- to add a view,
1. simply drag the object to your nib file
2. select view/object and open inspector window
3. select identity pane
4. type name of class in the Class field, or select the class from the combo box
- creating connections,
1. select source object and open connections inspector
2. click the circle object to the right of the outlet/action, drag over to target object
3. select action methods (if needed)
- remove a connection by clicking 'break connection' box to the left of the name of the connected object
0 TrackBacks
Listed below are links to blogs that reference this entry: Notes from iPhoneDevCampNYC InterfaceBuilder session.
TrackBack URL for this entry: http://hyperradiant.net/MT-4/mt-tb.cgi/222

Leave a comment