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

View controller created manually from a storyboard in application:didFinishLaunching does not respond to touch events

I want to create my storyboard manually in code rather than have it load automatically, so I first removed the launch storyboard in the plist like so: With this in my app delegate: - (BOOL)application:(UIApplication *)application…
Robert
  • 37,670
  • 37
  • 171
  • 213
0
votes
1 answer

What exactly does datasource & delegate to self do?

I often see that on the storyboard I have to setup datasource and delegate outlets to my self view controller. It surely makes stuff work, I can guess why but it would be better if this matter is cleared.
Esqarrouth
  • 38,543
  • 21
  • 161
  • 168
0
votes
1 answer

How do I tell if app has been opened without URL?

I know I can check if a URL has been used to open my application, like so: - (BOOL)application:(UIApplication*)application openURL:(NSURL*)url sourceApplication:(NSString*)sourceApplication annotation:(id)annotation' ... but how do…
cannyboy
  • 24,180
  • 40
  • 146
  • 252
0
votes
2 answers

How to perform method immediately when/before device screen turns off due to inactivity?

I'd like to perform some methods before my app closes due to user inactivity (i.e., the screen going black and the phone locking when you haven't touched it for a while). What method(s) is/are called when this happens? I'm guessing: This method /…
0
votes
2 answers

Hiding an autocomplete UITableView that was created programmatically

I'm building an application with an autocomplete UITableView from this tutorial. I have the autocomplete functionality working properly, but I would like the UITableView-autocomplete drop down to disappear when the word is clicked on or when it is…
0
votes
0 answers

UI freezes when coming back after a screen lock in IOS

I am developing a downloading application. I got stuck at a point, when the user comes back after device screen lock, then my UI gets stuck. Everything gets nil, whether its UITableview or NSMutableArray, everything related to UI becomes nil, but…
0
votes
1 answer

UIApplication sharedAppication error: program seems to be accessing wrong file

in my MainViewController implementation, I need to access variables from two different classes. one of the classes is the AppDelegate and the other is the FlipsideViewController. the way I accessed these was through this…
0
votes
1 answer

Why isn't UIWebView loading an NSURLRequest at applicationWillTerminate: in my app delegate?

I am trying to clean up when the app is about to terminate/enter the background. But, when the following code is called, - (void)applicationWillTerminate:(UIApplication *)application { NSURL* url = [NSURL…
0
votes
1 answer

ios Core Plot - symbolforScatterPlot not being called

I have implemented the following function to plot different symbols in scatter plot using Core Plot. -(CPTPlotSymbol *)symbolForScatterPlot:(CPTScatterPlot *)plot recordIndex:(NSUInteger)index But the function is not being called. I have included…
Dinesh
  • 2,194
  • 3
  • 30
  • 52
0
votes
2 answers

UISharedApplication bug that cannot be determined

-(void) setupMyLocation { NSArray *viewControllerArray = [navigationUpdateFromDetail.navigationController viewControllers]; NSUInteger parentViewControllerIndex = [viewControllerArray count] - 2; NSLog(@"Parent view controller: %@",…
0
votes
0 answers

Why is UIAppearance not working in applicationWillEnterForeground

I am trying to implement different themes to my application. The user can select the different themes in the Settingsbundle, then the application should display the theme according to the user decision. I call the theming method in…
David Gölzhäuser
  • 3,525
  • 8
  • 50
  • 98
0
votes
2 answers

Bypass UABaseAppDelegateSurrogate for my custom UIApplicationDelegate

In my iOS app, I would like to retrieve a reference to my app delegate using [[UIApplication sharedApplication] delegate], however this is returning an instance of class UABaseAppDelegateSurrogate instead of my custom UIApplicationDelegate class. I…
0
votes
0 answers

how to set a view controller as an delegate in app delegate?

I have a signupcontroller for which I check if user is logged in , if not then I present it in appdelegate, also as this signupcontroller has been subclassed for customisation hence delegates are being used to talk to events like input validation…
Abhinav Singh
  • 7,880
  • 1
  • 23
  • 33
0
votes
1 answer

Is there a way that we can get delegate methods when we receive a phone, finish a phone call etc. in iOS?

Let's say I want to call a method after my phone call was finished in my application. Is it possible to do that? I know about using UIApplicationDelegate Methods where I can use the methods: - (void)applicationWillEnterForeground:(UIApplication…
paragdulam
  • 55
  • 4
0
votes
0 answers

UITabBarController delegate didselect Item in UIViewContoller

I have added UITabBarController in appdelegate.m. Please check the below code DiViewController *contact = [[DiViewController alloc] initWithNibName:@"DiViewController" bundle:nil]; UINavigationController *contactNav = …
vijay
  • 637
  • 3
  • 9
  • 20