Sharing objects between view controllers
In an iPhone application where can you store the model (MVC) object and how do you share it between view controllers? There are a number of ways for doing this. I found the easiest way is to define the...
View ArticleHow to tile an image using iPhone SDK
To tile an image on a UIImageView, you’ll need to use CGContextDrawTiledImage function. Here is a code snippet to tile an image called wave on the imageView object that you’ve defined. -...
View ArticleUITableView in UIViewController
There are times when you want to add a UITableView to a UIViewController (without having to use a UITableViewController). To do this, you’ve to make sure to override the implementation of a number of...
View ArticleMYSQL to SQLITE for iPhone
Today I had to migrate a MySQL table to SQLite so that I could use it in an iPhone app. The process is simple, you can export the MySQL table and then import it in SQLite. I found the following shell...
View ArticleBooks on iPhone
I’ve recently started using my iPhone to read reference books. I bought a number of books on Amazon, but the Kindle app is kind of annoying for reference material. For example, there is no search, you...
View ArticleUIColor using RGB macro
The default OS X color picker does not show you the RGB color code. There are a number of other color pickers that you can install and they will extend the standard color picker giving you access to...
View ArticleSharing SQLITE connection on iPhone threads may leave you hanging
iPhone SDK makes asynchronous operations really easy to use. There is no excuse for not making an application where the UI freezes whilst you’re downloading a URL or running a time-consuming SQL query....
View ArticleMapping cellular signal strength to 5 bars
By now you may have heard about the reception problems with iPhone 4. Apple has mentioned that the real problem has been with the way they mapped signal strength to the famous AT&T 5 bars icon...
View ArticleUITextField: how to dismiss the Number Pad keyboard
By default the Number Pad keyboard unlike the default keyboard does not have a “Done” button. I tried a number of different techniques to dismiss the keyboard, e.g., set the UITextField’s delegate to...
View ArticleiPhone voice memo to MP3
Today I tried the iPhone Voice Memos for the first time and recorded a meeting that lasted for 55 minutes. To get access to the voice memo file you need to sync the iPhone with your computer using...
View Article
More Pages to Explore .....