Questions tagged [uiapplicationdelegate]

UIApplicationDelegate is a part of the UIKit framework used in iOS development

UIApplicationDelegate Protocol is available in /System/Library/Frameworks/UIKit.framework since iOS 2.0.

It declares methods that are implemented by the delegate of UIApplication object. It gives information on key events during application execution (finish launching, terminated, low memory, ...) (from iOS developer guide)

initial help

sample code

  • Could be found also in the official documentation
523 questions
0
votes
1 answer

Unused parameter shows error

I am new to objective C . i have created an ARC enabled application and modified build settings like Treat warning as error - YES and unused parameter - YES in Apple LLVM compiler 3.0 warning category in build setting. so in app Delegate file, UI…
0
votes
2 answers

applicationDidEnterBackground after applicationWillTermimate for application with background location mode

I'm writing an application that runs in background mode that can track user (so sometimes updates location in background mode) and, by using region monitoring, informs him of nearby points. I do not use the feature of relaunching the application…
0
votes
1 answer

how to show a alert box in a delegate method (User defined) in Xcode?

I have written a function named as register which connects with the server and calls register done method (if connection established successfully) which is a delegate method,now here i am trying to display alertbox but the UI gets stucked and the…
0
votes
1 answer

Application continue to perform network operation after entering to the background?

I was looking into a debug file my application creates while running and saw a strange behavior: The application uses NSURLConnction to retrieve some data from a server. The connection was started and then the user moved application to the…
0
votes
2 answers

Memory leak in applicationWillEnterForeground

I am having around 9 ViewControllers in my application. I am opening the ViewControllers using the presentModalViewController. I want to display the 1st ViewController every time the user enters background and comes to foreground. If the user enters…
Cyril
  • 1,216
  • 3
  • 19
  • 40
0
votes
1 answer

iOS: Window object is nil

I had an app delegate and I needed to add custom tab bar controller to override UITabbarController. I have created Window user interface, reference Window to Appdelegate's Window object. made File's owner to UIApplication, added NSObject and changed…
0
votes
1 answer

Making particular ViewController as default whenever didEnterForeground called

I want to display particular ViewController, let say defaultViewController, whenever the user leaves from any ViewController. So in the didEnterForeground I have added this code, self.DefaultViewController = [[DefaultViewController alloc]…
0
votes
2 answers

How can i add a custom uibarbuttonItem to my navigation item in all view controllers?

I am trying to add a custom UIBarButtonItem to my navigationItem. This button will be available in all my view controllers. so instead of adding it to each viewDidLoad method in each viewDidLoad I am trying to add it in my application Delegate class…
0
votes
2 answers

ViewController Delegate

is it possible to access a ViewController's methods from the appDelegate, like it is possible inverse with the following code:? AppDelegate *ad = (AppDelegate *) [[UIApplication sharedApplication] delegate]; When I try ViewController *vc =…
Linus
  • 4,643
  • 8
  • 49
  • 74
0
votes
2 answers

Sequence when application launches from email attachment in iOS

In my application, a viewController manages a UIWebView. Is is created with the main Storyboard of the application. This app is able to open a rtf email attachment and display it to its UIWebView. When application is in background, everything is OK.…
Denis
  • 775
  • 7
  • 22
0
votes
1 answer

Need to load UIViewController from appdelegate and hide UITabBarController when loaded in Storyboard App

I have an app, in that app if its the first time the user has run the app I need to display a welcome screen and then present some 1st time only setup information for the app. I think the best place to put this is in the appdelegate…
0
votes
1 answer

How to update a view from outside a controller in xcode

So far I have only been updated a view from within its controller. I am now in a different situation where I need to update an element in a view (a text label) based on some event occurring in another class C of my application. I realize this is…
Lolo
  • 3,935
  • 5
  • 40
  • 50
0
votes
1 answer

Go back to AppDelegate

I am making a tab bar application. In AppDelegate in method -(void)applicationDidBecomeActive I have a string of code: [self.window addSubview:pass.view]; So every time when app becomes active, pass.view appears. And when user makes all work in…
SmartTree
  • 1,381
  • 3
  • 21
  • 40
0
votes
1 answer

How feasible is to use other delegates in app delegate file in iOS 4.2?

How feasible is it to use other delegates in app delegate file . e.g. @interface AppDelegate : UIResponder { BOOL LoadingForFirstTime; } Is this recommended?
Nik
  • 2,913
  • 7
  • 40
  • 66
0
votes
1 answer

Few questions on iOS push notifications and logins

Here's my scenario. As part of my app when someone is sent a message it sends an alert to the phone. If they click on the alert I want to open up the specific message they were alerted to. I have a view message controller that will show the…
1 2 3
34
35