To link a .xib to a class under Xcode4:
- Open your .xib.
- In placeholder: select File's Owner.
- In the third thumbnail:"Identity Inspector" of the right panel, edit the "Custom Class" field and enter the name of your class.
I also then had to:
- Click the root view under Objects.
- Click the last tab: "Show Connections".
- Drag "New referencing outlet" to "File's Owner" and select "view".
沒有留言:
張貼留言