Top "Viewcontroller" questions

viewcontroller is a design pattern which is a hybrid of the view and controller components of the MVC architecture

How to dismiss ViewController in Swift?

I am trying to dismiss a ViewController in swift by calling dismissViewController in an IBAction @IBAction func cancel(sender: AnyObject) { …

ios swift viewcontroller
How to Navigate from one View Controller to another using Swift

I'd like to navigate from one view controller to another. How can I convert the following Objective-C code into Swift? …

ios swift viewcontroller uinavigationcontroller
Presenting modal in iOS 13 fullscreen

In iOS 13 there is a new behaviour for modal view controller when being presented. Now it's not fullscreen by default …

ios viewcontroller modalviewcontroller ios13
Swift programmatically navigate to another view controller/scene

I'm using following code to programmatically navigate to another ViewController. It works fine, but it some how hides the navigation …

ios swift uinavigationbar viewcontroller
Swift presentViewController

I programatically have multiple View Controllers in an iOS Swift Project. I do not have the storyboards and would like …

swift ios8 viewcontroller presentviewcontroller
Swift: Reload a View Controller

I need to refresh a view controller when a certain button is tapped. Simply activating viewDidLoad() does not seem to …

ios swift refresh viewcontroller
Programmatically switching between tabs within Swift

I need write some code to switch the view to another tab when the iOS app starts (so, for example, …

ios xcode swift uitabbarcontroller viewcontroller
How do I create a view controller file after creating a new view controller?

I am developing a tabbed application. When I create a new view controller and link it to the tab bar …

ios swift viewcontroller
presenting ViewController with NavigationViewController swift

I have system "NavigationViewController -> MyViewController", and I programmatically want to present MyViewController inside a third view controller. The …

ios swift uinavigationcontroller uinavigationbar viewcontroller
Xcode - How to connect XIB to ViewController Class

I created first my TestViewController.h and *.m. Afterwards my TestView.xib. Now I need to tell my xib: "Yes, …

objective-c xcode viewcontroller