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.

Get current view controller from the app delegate (modal is possible)

I know that to get the current view controller from the app delegate, I can use the navigationController property I …

ios objective-c delegates appdelegate
Changing titleTextAttribute in swift

Every since i updated xcode i cant seem to change the titleTextAttribute. Now when i use following code i get …

ios iphone swift appdelegate
Present UIAlertController from AppDelegate

I'm trying to present a UIAlertController from the AppDelegate in my iOS app. Below is the alert and the present …

ios objective-c appdelegate uialertcontroller
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_.AppDelegate add:]: unrecognized selector

I created a storyboard called Main.storyboard and created a AddBtnViewController with storyboard ID "addBtnVC". In the App Delegate, I …

ios swift appdelegate nsexception
Getting appdelegate value from viewcontroller

In Appdelegate.h I imported the playerviewcontroller in both Appdelegate.h and Appdelegate.m files. @class PlayerViewController; @property(nonatomic)float …

ios objective-c viewcontroller appdelegate
Change navigation bar tint color iOS 7.

I know how to change navigation bat tint colour in iOS 6: [UINavigationBar appearance].tintColor = [UIColor colorWithRed:129/255.0 green:200/255.0 blue:244/255.0 alpha:1.0]; I'm …

ios ios7 uinavigationbar uicolor appdelegate
iPhone registerForRemoteNotificationTypes does not generate an error but does not fire delegate that gives device token

I am developing an iPhone app that needs push notification. I followed the instructions for creating the certifications and modifying …

ios iphone apple-push-notifications appdelegate devicetoken
The app delegate must implement the window property if it wants to use a main storyboard file

I'm programmatically implement a list view controller. When I try to run the project, I got error: 2012-11-07 22:46:34.719 myTableViewControl[12021:…

ios uiviewcontroller uinavigationcontroller uiwindow appdelegate
Calling UIViewController method from app delegate

I know there are duplicates of this question but my situation is different here. When user goes back to the …

ios objective-c uiviewcontroller appdelegate
Launching ViewController from AppDelegate

I have a custom URL scheme and i want to open a certain ViewController which is not the root when …

ios uiviewcontroller appdelegate