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

iOS Retrieving Push Notifications on applicationDidBecomeActive when application:didReceiveRemoteNotification isn't triggered

I'm writing an app that receives push notifications. When it gets one, and someone opens their phone through that notification, my application's delegate receives a application:didReceiveRemoteNotification: which comes with important notification…
pachun
  • 926
  • 2
  • 10
  • 26
0
votes
1 answer

Best way of handling interruption (such as phone call, battery warning) when in the middle of a task

I'm aware of the method described here with applicationWillResignActive:, but that's a method within the app delegate. If I'm in a view controller that is obviously separate and doing a task, how do I tell that view controller to pause its activity…
Doug Smith
  • 29,668
  • 57
  • 204
  • 388
0
votes
2 answers

ios updateDisplay on a timer

I've got a somewhat complicated iOS user interface, where I need to reload a particular cell of a UICollectionView every second to show time (kind of like a complicated stopwatch), I also need to do a few other things every second in this call. Part…
hatunike
  • 1,967
  • 1
  • 19
  • 26
0
votes
2 answers

updating a variable in appDelegate

In the application delegate, I created an array for multiple view controllers to reference. However, when I try to update the array in one view, it comes up empty in the other. View 1: MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication…
rson
  • 1,455
  • 2
  • 24
  • 43
0
votes
1 answer

Change view when didReceiveRemoteNotification

I am trying to change from the App delegate method to the Master View when I receive a Remote Notification, in order to perform a segue in the Master View to another view, but I am getting an NSInvalidArgumentException Code in App Delegate when…
0
votes
2 answers

What is the call back method for killing the application instance?

In my application I want to get notified when the instance of the application is deleted. Even though I can easily get what I am asking simply by googling, I can't find anything useful to me. May be the synonym i'm using deleting the app instance…
vignesh kumar
  • 2,310
  • 2
  • 25
  • 39
0
votes
1 answer

UIApplication prevent app moving to foreground if other app calls openURL: with valid URL

Can we prevent application moving to foreground if other apps call openURL: with valid URL. I need only save data from URL; caller application should stay in foreground and receiver app should stay in background. For example: first app calls to…
0
votes
2 answers

Setting up a delegate to determine a login sequence has completed

I am trying to follow this question to setup a delegate for a login sequence:- How do I set up a simple delegate to communicate between two view controllers? In my application I have a Main View (MESHomeViewController). I also have a login structure…
StuartM
  • 6,743
  • 18
  • 84
  • 160
0
votes
2 answers

Formating a single textfield so that it display is different to all the others

How would i set the currency in a text field to display it as a localized currency, with a leading 0. If someone types in 16.25 pence it would be formated as 0.1625£ respectively. I am using delegation and formating all text fields so only numbers…
0
votes
1 answer

Showing a one-time UIViewController via presentModalViewController upon launch

Greetings! I have a working iPhone app (huzzah!) that uses a MainView.xib containing a fully-stocked UITabBar with several UINavigationController objects and views at-the-ready. I've now been asked to add a one-time registration view to this mix.…
0
votes
3 answers

How much time do I have after applicationDidEnterBackground invoked?

I want to send a timestamp to a remote server, and wait for the callback of success, then store the timestamp locally, if remote server did not respond. Is it something that I could put into applicationDidEnterBackground implementation?
Geri Borbás
  • 15,810
  • 18
  • 109
  • 172
0
votes
1 answer

UIApplicationDelegate applicationWillResignActive executing method but not showing effects

I need to purge the state of the app before going background and not before coming foreground for security reasons. The code in applicationWillResignActive executes but the dismissal of the view is not shown nor does it take effect since the…
0
votes
1 answer

UIApplication get name of app which will handle URL

Is it possible to retrieve the name of the app which will handle a specific URL? In other apps I saw "Open Link in Safari" and if you click, YouTube or whatever else will launch. I don't really like this behavior and I'd like the get the…
Julian F. Weinert
  • 7,474
  • 7
  • 59
  • 107
0
votes
1 answer

App reset counters

I have a simple question about one of my iPhone applications. I have a few global counters that store numbers from 0 up to 13, and once the program is terminated (click stop on simulator) and reopened in debug mode, the counters still have the same…
James Brown
  • 919
  • 3
  • 13
  • 22
0
votes
1 answer

Ios How to a add a button to my TabBarController then trigger the presentation of a modal view from it

I have a UITabBarController bassed app. I'm instantiating it from the app delegate and adding a custom button in the tab bar controller. when that button is clicked, I want to present another view modally, but I cant seem to figure out how to do it.…
user379468
  • 3,989
  • 10
  • 50
  • 68