iOS / Objective-c – Simple NSTimer

Here’s a simple use of NSTimer to repeatedly trigger a method call every X seconds in Objective-c, for iOS.

Declare NSTimer variable in header file

NSTimer *myTimer;

Initialise myTimer at the appropriate point in code. Could be viewDidLoad on iPhone or willActivate on Apple Watch. My example triggers the method named updateDisplay at 5 second intervals. Note that I’ve set repeats: YES.
You can trigger the method for a one off call after X seconds by setting repeats: NO.

myTimer= [NSTimerscheduledTimerWithTimeInterval:5.0
target:self
selector:@selector(updateDisplay)
userInfo:nil
repeats:YES];

The above code both primes and starts the timer.

To end the timer. Could be didDeactivate on apple Watch, for example

[myTimer invalidate];
myTimer = nil;

Advertisements

iOS – How long do Apple take to review your iPhone app?

LAST UPDATED: 25/06/2014

This is a difficult question to answer considering the varied range of complexities involved in testing an iPhone application.

I can however share my experience using Apple’s Developer Program and iTunes Connect.

Number of apps on the App Store: 42
Average time between submission and approval: 8.17 Days

Average time Waiting For Review: 6.74 Days
Average time In Review: 1.55 Days

Maximum time between submission and approval: 14 days
Minimum time between submission and approval: 5 days

Maximum time Waiting For Review: 13 Days
Minimum time Waiting For Review: 4 Days

Maximum. time In Review: 16 Days
Minimum time In Review: 30 minutes

Looking for an iPhone app? I can build it… get in touch 0844 833 0700 or rob@reactivapps.co.uk

iPhone – The ultimate and best iPhone theme for jailbroken iPhone (Cydia Winterboard)

 

So here is my ultimate theme for iPhone. I use it on my iPhone 4 running iOS 5.0.1. If you’re running an older version of iOS or a different device feel free to give it a go a let me know how it works out.

 

 

First off you need a jailbroken iPhone. Search online and you’ll find a number of tutorials to jailbreak your device.

Here’s an example tutorial to jailbreak iPhone 4 running iOS 5.0.1 http://www.redmondpie.com/fix-ios-5.0.1-untethered-jailbreak-bugs-with-new-redsn0w-0.9.10b3-update-now/

If your using iPhone 4S follow instructions here http://www.redmondpie.com/jailbreak-iphone-4s-ipad-2-untethered-on-ios-5.0.1-using-absinthe/

 

So by now you should have a jailbroken iPhone with Cydia installed.

 

Next launch Cydia and add the following sources if you don’t already have them:

BigBoss – http://apt.thebigboss.org/repofiles/cydia
ModMyi – add source http://apt.modmyi.com

Add sources to Cydia by tapping the Manage Tab –> Tap Edit –> Tap Add –> Enter URL –> Tap Add Source –> wait for it load and your done.

 

 

Next search and install the following packages from Cydia.
Theme Customisations:

Winterboard available on Cydia by Jay Freeman (saurik)

iMac iCons Theme – available on Cydia from BigBoss


Barter Pro UI – available on Cydia from ModMyi

 

 

Now take a break from loading Cydia packages and open winterboard by tapping the icon from springboard and tap Select Themes.

Select the following theme options:

iPod Barter Pro
Phone Barter Pro
NC Barter Pro
Barter Pro UI
iMac iCons


Hit back and respiring your device.

 

 

Back to Cydia and install the following packages:
User Interface Customisation:

Five icon dock  available on Cydia by Jay Freeman (saurik)

 

Cascade available on Cydia from BigBoss

 

Barrel – available on Cydia from BigBoss

 

Colorbanner – available on Cydia from ModMyi –  Set banner color Gold

 

Flowtation – available on Cydia from ModMyi

 

Quick tweet – available on Cydia from BigBoss

 

 

Lockscreen customisation:

Power lock – available on Cydia from BigBoss

 

ColoredKnob – available on Cydia from BigBoss – Set color Green

 

Bulletin –  available on Cydia from BigBoss

 

Slider Enhancer – available on Cydia from BigBoss – customer slider text

 

 

Notification centre customisation:

Custom nc background – available on Cydia from ModMyi – ncbg.jpg

Save the following image to set as the NC background 

 

Simpledate for notification centre –  available on Cydia from BigBoss

 

Powercentre pro –  available on Cydia from BigBoss

 

Weekillbackground pro –  available on Cydia from BigBoss

NCRotationLock – – available on Cydia from ModMyi

 

 

Other noteworthy packages not part of my ultimate theme but worth a look:

Clever pin
Bitesms
iPhonedelivery
Calltell
Emailenhancer

 

 

Looking for an iPhone app? I can build it… get in touch 0844 833 0700 or rob@reactivapps.co.uk