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 to send alive packet when application in background - IOS?

I am working on an voip application, I need to maintain connection with the server always even when application goes background, apple is provding support to use communication socket, my problem is I have a separate server (i.e consider login…
Newbee
  • 3,231
  • 7
  • 42
  • 74
0
votes
2 answers

How to open another App when user closes the current App?

In my App, I would like user to see another app when he closes the current App. Is it possible in any way? I tried writing code and open the app through custom url schema right from the method: - (void)applicationWillResignActive:(UIApplication…
Ashutosh
  • 5,614
  • 13
  • 52
  • 84
0
votes
2 answers

How does work viewWillAppear?

My viewWillAppear method call "-(void)doSomething". - (void)doSomething { Y4AppDelegate * delegate = (Y4AppDelegate *)[[UIApplication sharedApplication] delegate]; if(delegate.booSomeValue == 0) { UIButton * aButton = [UIButton…
sensorario
  • 20,262
  • 30
  • 97
  • 159
0
votes
1 answer

PushNotification in iOs and Application icon is clicked

I receive PushNotification as badge as well as alert and are displayed as badges on the app icon. I receive the payload successfully when I click on alert, which appears at top area of the screen. But, if the notification is received and I click on…
NNikN
  • 3,720
  • 6
  • 44
  • 86
0
votes
2 answers

On a Storyboard application, how to present a view controller from the AppDelegate during the application:didFinishLaunchingWithOptions:?

I have a Storyboard application that the root view controller is a UITableViewController. Sometimes when I launch the application I need to present a view controller (that doesn't need a nib or anything). This is how I'm trying to do that: In my…
0
votes
2 answers

delete files in documents folder when iphone app terminated

My iPhone app will download several content to Documents folder while running the application. I want to delete the downloaded files when app is going to terminate. My app runs on target 4.3 or more and ARC enabled. What is the best place to delete…
0
votes
2 answers

iPhone: NSLog self.window.rootviewcontroller

I need to know my winow.rootviewcontroller name. For example UITabBarController *demoTabBarController = [[UITabBarController alloc] init]; [self.demoTabBarController setDelegate:self]; self.demoTabBarController.viewControllers = [NSArray…
Jay Pandya
  • 507
  • 6
  • 26
0
votes
1 answer

reset brightness after exit application

My code: -(IBAction)changeSlider:(id)sender { [[UIScreen mainScreen] setBrightness:slider.value]; NSString *string = [[NSString alloc] initWithFormat:@"%.1f", slider.value]; label.text = string; When I leave my application on…
user1883396
  • 161
  • 3
  • 9
0
votes
2 answers

catch launchOptions in applicationDidBecomeActive

I want to catch launchOptions like in didFinishLaunchingWithOptions but in applicationDidBecomeActive (when my app take focus). For example, i open a document in Box. Then, i select "Open with" and select my app. Then my app take focus. How can i…
ApheX
  • 685
  • 2
  • 10
  • 26
0
votes
1 answer

Dismiss a popover using a button and delegate execution

I wrote some code to hide a popover pressing a button but...it doesn't work (nothing new). I have a main view (I will call it A) with a button inside, pressing the button a popover is shown (I will call it B). The popover has another button inside…
0
votes
2 answers

iOS UITableViewCell UIImageView setting on different conditions

I have an app that has a UITableView and in my Cells I have UIImageViews and UILabels that change images/textColors for a day theme and a night theme (trying to be automatically set). My issue is that I set the images and colors when the table is…
chis54
  • 477
  • 5
  • 17
0
votes
1 answer

iOS Push Notification/Framework issue

I've been checking around the net to find some information or source code to achieve this. The thing is, that the Application I am developing uses a custom framework we are also developing. And our customer wants to add Push Notification support for…
Ignacio Oroná
  • 4,371
  • 1
  • 19
  • 25
0
votes
1 answer

How to increase applicationDidEnterBackground in iPhone?

I call one api in applicationDidEnterBackground, but applicationDidEnterBackground method returns after 5 seconds so how could I increase timer or after api finish then only applicationDidEnterBackground will return all of us suggest use…
Ajay516
  • 45
  • 2
  • 10
0
votes
0 answers

Why does overriding loadView in UITableViewController fix tableView being associated with multiple view controllers crash?

I have an app that was crashing (in iOS 6 only) when the app was loaded with the following error: Application windows are expected to have a root view controller at the end of application launch *** Terminating app due to uncaught exception…
Eric
  • 495
  • 2
  • 6
  • 19
0
votes
1 answer

Calling method from another class, uiwebview and modal view issues

I'm experiencing a few issues when trying to call a method from another class. Here's my code Appdelegate.m - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url{ if ([url isFileURL]){ RootViewController *theview =…
davis
  • 1,911
  • 6
  • 26
  • 50