What is the difference between Object and External Object in the IB?
When should I use each?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- Xcode: Is there a way to change line spacing (UI L
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
Adding on to the other answer: You could use an 'External Object' to access a common object across multiple xib's. You could do this in other ways too, but this would be convenient.
Like for example, if you have a 'big' action to be performed for button clicks over multiple xib's and if you have many such actions (and additionally if it's the same data you are performing this action on), instead of calling
addTarget:action...
, you could create the proxy object of this class and wire it up to the buttons.You can connect the proxy object to your xib using the following code:
An Object is something that's actually embedded in the nib.
An External Object is one that the code that loads the nib promises to provide at load time (I believe via a dictionary that maps keys to external objects).
Most people never use any External Object besides File's Owner (which is already provided for you). You almost certainly just want Objects.