iPhone development tips
Tip #1: Loading screen
To get your app looking cool and having a loading image come up as the application is loading simply add a file called “Default.png” size 320 × 480 to your xcode project and it will automatically show up as the application is loading.
Tip #2: Network Activity Icon
So your application connects to the internet and you want to add those little touches to let the user know its connecting. Well the simple option is to show the network activity indicator. To do that its as simple as setting a variable like so
[UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
Then to hide it its simply
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
Now you can wire it up to be a little more logical in that way it determines if its working or not but ill leave that to you. Keep an eye out as more tips are on the way
Tip #3: Detect if running in iPhone simulator
What to run different code depending if you running in the iPhone simulator or not. Just use the following if statement.
#if TARGET_IPHONE_SIMULATOR
// simulator code
#else
// production code
#endif
It has to be 57px X 57px
I fell into this trap again of making my icon for a iPhone app l am currently working on not exactly 57×57 pixels. I have the height set at 57 but the width because of the auto resizing in Photoshop it was suggesting l make it 54px, thus when l looked at the logo it never looked right as the bottom of it was cropped off.
Remember people iPhone app icons must be 57×57 exactly and if your image looks wrong at those sizes well bad luck fix it
iPhone application intergration with Web Application
We are working on integrating an iPhone application with a Ruby on Rails web application. Its actually not that hard, the ObjectResource framework which was developed by Ryan Daigle. It works really well and allows you to easy interact with your rails application with little hassle.
Ill post more about this soon




