Top "Appdelegate" questions

In iOS, the app delegate is responsible for managing the app throughout its lifecycle by responding to events such as launch and termination.

Swift – Instantiating a navigation controller without storyboards in App Delegate

I'm rebuilding an app without storyboards and the part of it that I'm having the most trouble with is navigating …

ios objective-c swift uinavigationcontroller appdelegate
Swift - Accessing AppDelegate window from viewController

I make walkthrough (onboarding flow) in my app and I'd like to have a skip button. The button is located …

ios swift uiviewcontroller appdelegate
Swift 4 ,must be used from main thread only warning

When I using Swift4in Xcode 9 gives me UIApplication.delegate must be used from main thread only .... must be used …

appdelegate swift4 xcode9
Present view controller from app delegate

I'm attempting to present a view controller from the app delegate with this code: - (void)interstitialViewControllerRequestSucceeded:(UIViewController *)interstitialViewController { [self.…

ios objective-c uiviewcontroller appdelegate
iOS 13: Swift - 'Set application root view controller programmatically' does not work

I have following code in my AppDelegate.swift to setup root view controller for an iOS application. But it does …

ios swift appdelegate ios13 rootviewcontroller
Call app delegate method from view controller

I want to know if I can call an app delegate method from another ViewController. When the app starts, the …

ios swift appdelegate
Get Instance Of ViewController From AppDelegate In Swift

I am trying to load a specific ViewController from the app delegate in swift when a user clicks a UILocalNotification. …

ios swift appdelegate
How to change RootViewController in AppDelegate From Other ViewController?

This is didFinishLaunchingWithOptions Method in AppDelegate. Let me explain scenario, I have developed sideMenu like facebook in my app, but …

ios appdelegate rootview
Swift: How to access in AppDelegate variable from the View controller?

I would like to write in the text or csv (prefer) file the variable from the view controller. Indeed I …

swift viewcontroller appdelegate
Controlling which view controller loads after receiving a push notification in SWIFT

Once I receive a push notification and swipe to open it, it just opens my app and not the VC …

push-notification apple-push-notifications appdelegate