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
2 answers

How change PickerView delegate from one controller to another one?

With the storyboard I've built one ViewController1 with an "Add" button. Click on add display a PopoverView (in ViewController2) with only a Picker within. So my PickerView's delegate is in ViewController 2 but I want it in ViewController1... Is…
Benjamin
  • 7,055
  • 6
  • 40
  • 60
0
votes
1 answer

iPhone app starts perfectly fine in simulator but does nothing on the iphone

Thanks for reading. I solved the problem. The reason was the following: In the info.plist file I altered the row "Localization native development region" to "Germany". After that the app no longer ran on the iphone but in the simulator. After…
toom
  • 12,864
  • 27
  • 89
  • 128
0
votes
3 answers

AutoLock an App after a Certain Number of Minutes

My question..not even sure if this is possible but curious from others... I have an app that will prompt a use for a password each time the user opens or brings back from the background. Works fine. Due to the sensitivity of the data I'd like to be…
0
votes
1 answer

what UIApplication Delegate should I use

Hey so I need help with this. I have to launch my application from email without the application being in the background process. Currently, the application has to be in the process for me to open the email attachment. Is there any…
0
votes
1 answer

Object stored in the app delegate doesn't seem to persist

Perhaps I'm misunderstanding how this should work, but I've created an object in the app delegate, and on a tab bar controller I set the object, but when I go to the other tabs it doesn't seem to exist anymore. This is the only place I reference it…
Jhorra
  • 6,233
  • 21
  • 69
  • 123
-1
votes
2 answers

Issues With App Delegate it frees the variable

I'm extremely new to ios. I'm trying to learn appDelegate method to pass data in my application. When I'm setting the value for the variable (appDelegate variable) it does set it @ that point of time but after 2 steps it shows it as out of…
StackFlowed
  • 6,664
  • 1
  • 29
  • 45
-1
votes
2 answers

UINavigation Controllers and Delegates

Some existential doubt, I have been researching on various sites and I have several examples, but I have 2 questions that I couldn`t clarify: Navigation Controller: I have seen about 10 examples of Navigation Controller but I cant understand it, I…
-1
votes
2 answers

How to remove UIView and add another UIView in appDelegate at runtime?

I have 2 UIViews that are totally dependant on AppDelegate file. First UIView is an Ad page that i have to launch when i start the app. But Already i have made the app with another HomeView that is dependant on AppDelegate. I am adding AdView as…
DShah
  • 9,768
  • 11
  • 71
  • 127
-1
votes
1 answer

Static member 'load' cannot be used on instance of type 'AppDelegate'

Can someone explain why I cannot use a custom load function in my application(_, didFinishLaunchingWithOptions:)? I am receiving the error: Static member 'load' cannot be used on instance of type 'AppDelegate' When I rename the function e.g., to…
Christopher Graf
  • 1,929
  • 1
  • 17
  • 34
-1
votes
1 answer

Pausing iOS app game when User clicks Home Button

While the user is playing the game if they tap the Home Button on iPhone/iPad the game pauses itself but doesn't stay paused if the user clicks back on the app to open it, instead game leads them to game over screen. How do I code it that once the…
Merc
  • 313
  • 1
  • 4
  • 10
-2
votes
2 answers

How to hide window screen and show screen after a time interval in iPhone?

I have a problem that in my app i don't want to show any type of screen and when application install on device but after 2 minutes i want to show a screen. I am using following code for this -(void)applicationDidFinishLaunching:(UIApplication…
ios
  • 552
  • 5
  • 22
-2
votes
1 answer

Does delegate have function which is executed every time app comes from background

I have application with lot of view controllers and on every time when app comes from background I have to make some request to server and reinitialise some global variables. At the moment I am doing this by repeating code in every view controller…
PaolaJ.
  • 10,872
  • 22
  • 73
  • 111
-2
votes
1 answer

How to Access App Delegate from Binary?

I want to access the App delegate in an iPhone app. I can do this from code either in - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *) or NSObject *appDelegate = (NSObject…
ramo
  • 609
  • 2
  • 8
  • 14
1 2 3
34
35