How to change “__MyCompanyName__” in Xcode!

Even if you are not using Xcode for company purposes, it’s still irritating to see the “__MyCompanyName__” in the top header comments of all of the Xcode files in each and every project.

Sorting an array with NSArray

You can think of an array as a container to hold a number of the same type of variable.
I use them a lot to hold lists of data, specifically strings! One thing that you may need to do from time to time is to sort that list in alphabetical order. This can sometimes be done [...]

Using a timer with the NSTimer class

Sometimes, you need to use the NSTimer functionality, this is the place to look.
On my first application that I will be submitting to the App Store, it needs to run a check on a frequent basis, so a timer that runs and calls another method is required!
This is the code that you need in [...]

Using NSDate for the time and/or date!

So, you want to either do some calculations using dates or you just want to break up the time into hours, minutes and seconds.??
This is easy to do, using the built-in NSDate class within Xcode. Prior to the 2.2.1 iPhone update, I used a different method, but this was ‘broken’ by the update, as once [...]

Using Red, Green and Blue for the iPhone

If you want to use RGB values (Red, Green and Blue) for the iPhone, you might find it hard to source any examples.
Not, however, if you are reading this!!
I found out that in iPhone coding, ‘0′ is off and ‘1′ is fully on. It’s the values in between zero and one that make up the [...]

Page 5 of 6« First...23456