Top "Uiviewcontroller" questions

The UIViewController class manages the views in iOS apps and mediates the interaction between an app's views, its underlying model objects, and the overall workflow.

Opening view controller from app delegate using swift

I am trying to create a push notification which determines which view to open according to information obtained from the …

ios swift uiviewcontroller appdelegate
Display clearColor UIViewController over UIViewController

I have a UIViewController view as a subview/modal on top of another UIViewController view, such as that the subview/…

iphone objective-c ios uiviewcontroller storyboard
Fatal error: use of unimplemented initializer 'init(coder:)' for class

I decided to continue my remaining project with Swift. When I add the custom class (subclass of UIViewcontroller) to my …

ios macos uiviewcontroller swift
How to write init methods of a UIViewController in Swift

I am unable to add init method to the following UIViewController class. I need to write some code in the …

ios swift uiviewcontroller uikit designated-initializer
How do I access my viewController from my appDelegate? iOS

I have an iOS app I created as a "view-based app" in xCode. I have only one viewController, but it …

ios uiviewcontroller uikit storyboard
viewWillDisappear: Determine whether view controller is being popped or is showing a sub-view controller

I'm struggling to find a good solution to this problem. In a view controller's -viewWillDisappear: method, I need to find …

ios iphone cocoa-touch uiviewcontroller uikit
How do I Disable the swipe gesture of UIPageViewController?

In my case parent UIViewController contains UIPageViewController which contains UINavigationController which contains UIViewController. I need to add a swipe gesture …

ios uiviewcontroller uigesturerecognizer uipageviewcontroller
Detect when a presented view controller is dismissed

Let's say, I have an instance of a view controller class called VC2. In VC2, there is a "cancel" button …

ios uiviewcontroller
Animate change of view controllers without using navigation controller stack, subviews or modal controllers?

NavigationControllers have ViewController stacks to manage, and limited animation transitions. Adding a view controller as a sub-view to an existing …

iphone ios ipad uiviewcontroller uianimation
View Controllers: How to switch between views programmatically?

In short: I want to have two fullscreen views, where I can switch between view A and view B. I …

iphone uikit uiviewcontroller uitabbarcontroller