Override IBOutlet properties from super class?
Don't try to recreate the variables in the subclass; the IBOutlet
variables still exist. You can still connect them inside of Interface Builder in a number of ways.
- Utilites (right panel) -> Connection Inspector - drag from the list of IBOutlets.
- Document Outline (left panel) - drag from
MyDetailViewController
- Drag from the yellow circle when you have the UIViewController selected in Interface Builder
Note: All UIViewController
subclasses inherit an IBOutlet named view
; this property already exists in Interface Builder even though you can't click + drag to connect it.