nstimer
iOS Killing my background task after 600 secs
I\'m developing an app that needs background task updating location every 30 mins. I\'ve tried to use a NStimer and updating every minute and it works (it spent 2 hours working). However, when I set i[详细]
2023-04-13 02:58 分类:问答Set a fixed date for a fireDate? xcode
I need to set several fireDates.开发者_运维百科 And I wonder how a set an alarm to an specific date and time?NSDate *date = //set the date[详细]
2023-04-13 00:06 分类:问答iPhone : Looping Audio stops after 4 mins
I am making a count down timer which plays a \"beep\" sound for every second counting through an NSTimer. The app must be awake for a max period of 90min and play the repeating beep sound until the ti[详细]
2023-04-12 22:48 分类:问答how to buffer incoming events/notifications your iPhone app is observing so as not to trigger event code for each event?
What is the best way to buffer incoming events/notifications your iPhone app is observing so as not to trigger event code for eac开发者_运维百科h event?A code sample would be great...[详细]
2023-04-12 17:58 分类:问答NSTimer getting zombie
I have created a NSTimer in my application which gets fired after every 1 min interval. my problem is when I put the application in ba开发者_Go百科ckground and after some time say 5 min, i bring that[详细]
2023-04-12 15:35 分类:问答Timing an operation and fire a delegate when it takes a long time to tell the user to wait
I\'ve created an NSOperation to do some heavy work in background but I need to notify the user when it takes longer time than usual.[详细]
2023-04-12 05:54 分类:问答NSTimer in a for loop
I want to call the getData method after waiting 2 seconds each time this loop...l开发者_开发问答oops.I\'ve written out the NSTimer a number of times inside and outside the loop but can\'t get the corr[详细]
2023-04-12 01:42 分类:问答Running code in a timer while application is in the background
Is it possible for this situation to happen: My application enters the background, I want a NSTimer to run in the[详细]
2023-04-11 15:17 分类:问答Change variable value from NSTimer
I\'m newbie to Cocoa/Objective C. I\'ve to change a value of a global NSSTring variable on every iteration of an NSTimer execution. I\'ve declared the variable inside the appdelegate.m at the top of t[详细]
2023-04-11 11:44 分类:问答Stop an NSTimer In A UIPopover
So I have a UIPopover with an NSTimer in it.It has various BOOLS and properties to make other methods happen, but that\'s not important right now.What I want to know is, is there any way to release an[详细]
2023-04-11 07:30 分类:问答