I'm trying to make an app using Interface Builder
(instead of Storyboard
) for the first time, but I'm stuck. Is it possible to change view using a ViewController
in the same XIB
?
I'd like that when I tap a button, the view changes to the other ViewController
present in the same XIB file
. Must I call back an action? If yes, which?
相关问题
- 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
If you have 2 view controllers with 2 .xib files, like this
You can present the NextViewControler from your ViewController's button press method,
EDIT :
You can present the same viewcontroller like this.