In a custom xib file, what's the difference between the two following setting methods shown in the images below?
相关问题
- 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: Is there a way to change line spacing (UI L
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
please check this link : What is the File's Owner (in Interface builder)? confused difference between Custom Class for an Object and for the File's Owner and steps via IB
in first screen shot : you should set the custom class of your View .
and in the second screen shot (
files owner
) you can Set the file's owner to your UIView subclass so that you can connect outlets to itWhen you add custom
UIView
withXIB
you init this custom view in someUIViewController
and write:File's owner (in
withOwner:
parameter) this is usually owner is a ViewController where you add your customUIView