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

Disabling UI interaction of iPad till the data is downloading on main thread in backend

I want to Disable UI interaction of iPad till the data is downloading on main thread in backend using Blocks I m downloading the images at loading time -(void)downLoadImageData{ [self ShowActivityIndicator]; [iOSNetwork getImages:ImageID…
soumya
  • 3,801
  • 9
  • 35
  • 69
0
votes
0 answers

How to send a Whatsapp message to a specific user using third party apps in iPhone?

Let my app be A and the app user is called A1 I have a completely different person with his mobile mobile number - N1 Now I want achieve the following in my app A - When the user A1 clicks on a button, Whatsapp is opened(if present) with a compose…
rahulg
  • 2,183
  • 3
  • 33
  • 47
0
votes
1 answer

When notification is dragged and released, ApplicationBecomeActive gets called in iOS

I have password option in my app, so if user sets a password, then I show a password page first when app becomes active and user should enter the password to use the app I have written the code this way -…
Ranjit
  • 4,576
  • 11
  • 62
  • 121
0
votes
3 answers

UIApplication Delegate weak reference causing it to be nil?

When a UIApplicationDelegate is instantiated from: UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])) Tthe AppDelegate remains in memory even though the [[UIApplication sharedApplication] delegate] property is a weak…
David Liu
  • 9,426
  • 5
  • 40
  • 63
0
votes
3 answers

terminating an app from didFinishLaunchingWithOptions

So, I have an app that monitors significant location changes. I want to only record changes at most every 2 hours. The other times, I really don't want my app to startup at all. Does anyone know if I can terminate my app from within - (BOOL)…
john ellis
  • 2,152
  • 2
  • 15
  • 13
0
votes
2 answers

My first iOS app. I have a UIWebView in my ViewController that I want to update

I have a UIWebView in my ViewController that I want to update when the UIApplicationDelegate is passed a URL, like myApp://?changeWebView=newstuff I am building the new URL fine based on the data I am passing in but I can't figure out how to…
0
votes
1 answer

Delegate method not being executed

I have a superViewcontroller named CenterViewController in which i have implemented UITabBarController *tabVC and the viewcontroller of tabVC are featureViewController, scheduleViewController, feedbackViewController, contactUsViewController. they…
0
votes
1 answer

IOS delay I cant figure out using AVFoundation to scan barcode

I have a time issue that has had me stumped I though since I was using a delegate to send the data back to the HomeView to process and redirect out to the ScanResults that was the issue but even if I [self…
Ehask
  • 128
  • 1
  • 11
0
votes
1 answer

Initialize a singleton class when app is lunching

I have singleton DB object that I want to upload from files or from server when the application starts. I have a splash screen - after this screen I want to decide if I will go to home view controller (user already login) or to login view controller…
0
votes
3 answers

Execute a line of code after a certain amount of time in the background on iOS 7

To provide some context, the application I'm working on allows the user to record a series of events along a timeline. One important piece of feedback we received from beta testers was that when the user exits the app while recording they'd like the…
Mo Moosa
  • 937
  • 2
  • 19
  • 39
0
votes
5 answers

Pausing Audio when App Goes to the Background

I have a notification setup to alert my VC when the app is going to resign the active state: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pauseGame) …
0
votes
1 answer

Can appDelegate use a function which is declared on a UIviewController

is it possible to call a function which is declared in a UIViewcontroller to use or pass a value from APNs in the app delegate method -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {... }
Aragunz
  • 511
  • 5
  • 18
0
votes
3 answers

Delete data when app is killed in the background.

I have an app where I am saving data but when the app is killed in the background I have to delete all the saved data. I tried using this method: - (void)applicationWillTerminate:(UIApplication *)application But its not working. Can someone please…
0
votes
1 answer

applicationDidEnterBackground method not getting called neither did applicationWillResignActive when My application goes in the background iOS 7

I am developing a banking application and the client requirement is not to show/save the screen snapshot when app goes in the background (i.e., when home button is clicked). I have added an overlay view in background method and removed that view…
anshul
  • 846
  • 1
  • 14
  • 32
0
votes
4 answers

subclass of UIViewController Delegation

So i have 2 view controllers, and a want the DOAbrirListaViewController.h to be a Delegate for the AddTaskViewControoler.h, in theory i think i have everything setup, but the methods on the DOAbrirListaView never get…
André Oliveira
  • 1,105
  • 4
  • 20
  • 53