A lot of the time, you can use buttons or tables to allow the user to interact with the UI of the iPhone. What happens though, if you want the user to use the UITouch methods and have a double tap on the screen? Well, this is incredibly easy to do! Put the following code [...]
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.
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 [...]
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 [...]
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 [...]