iPhone OS 4 is the next generation of the world’s most innovative mobile operating system. Its unique capabilities and new technologies will change what you thought was possible on a mobile platform. With a rich set of over 1500 new APIs, iPhone SDK for iPhone OS 4 provides you with an amazing range of technologies to enhance the functionality of your iPhone and iPod touch apps. iPhone Developer Program members can visit the iPhone Dev Center to download the iPhone SDK 4 beta now.
iPhone OS 4 delivers seven new multitasking services that allow your apps to perform tasks in the background while preserving battery life and performance. These multitasking services include:
Read the rest of this entry »
Apple on Thursday released an update for the iPhone SDK, bringing the current version of the SDK to 3.1.2.
The new SDK 3.1.2, which now includes Xcode 3.2.1, is available in versions that are compatible with Leopard and Snow Leopard for iPhone and iPod Touch developers.
The update contains general bug fixes for the SDK and Xcode. Dashcode is reported to now support the creation of Web applications that are optimized for Safari on the iPhone, PC, and Mac.
If you’ve used this new update, please tell us about your experiences with it in the comments.
Titanium Developer Meet, Bangalore
The first Titanium User Group meeting took place in Bangalore on 4th September 2009. The event was organized by Mohammad Khan (The guy in the blue T-Shirt in the snap)and others Of Esberi. The event started at 6:00PM and close to 15 people attended the event. It all began with an introduction to Titanium SDK and how to use the Titanium Developer tool to create applications for both iPhone and Android mobile platform. Since I already had played around using Titanium Developer tool, most of the stuff I heard there about using the tool was already known.
The meet was useful in that I got to learn what are the features and API’s provided by Titanium SDK to write applications for mobile. Some of the code samples shown at the meet were encouraging and I would say the code would be familiar to a person who had already worked on say Adobe Flex. Even for beginners, it’s not so tough to learn it.
We can use the UITextField’s delegate method
- (BOOL)textField: (UITextField *)textField shouldChangeCharactersInRange: (NSRange)range replacementString: (NSString *)string
to set the maximum character length.
This can be done by doing the following:
#define MAX_LENGTH 10 - (BOOL)textField: (UITextField *)textField shouldChangeCharactersInRange: (NSRange)range replacementString: (NSString *)string { if (textField.text.length >= MAX_LENGTH && range.length == 0) { return NO; } else { return YES; } }
There might be need at several stages of iPhone application development to insert a new view on top of other views. This can be achieved by setting the zPosition value of the view in question. If a View has a zPosition that is bigger than another views zPosition it will appear on top of the other view.
The other day I was trying to build GData with one of my iPhone applications built on iPhone SDK 3.0. The build failed complaining that NSTask is undeclared. Based on release notes for iPhone OS 3.0, I got to know that NSTask has been removed from the Foundation framework among several other API’s with iPhone OS 3.0. Moving forward all projects which used NSTask would fail n would require some amount of recoding to fill the missing gaps.
UIPrerenderedIcon
If you would like to render your iPhone application icon without any sheen and bevel effects added by iPhone OS, then add the boolean value
UIPrerenderedIcon=YES
in your application’s info.plist. Adding this key will instruct iPhone OS not to add the additonal effect around the icon and leave it as it is. On the left is a screenshot of one of the application’s – BubbleWrap(marked in red square)available on the Apple App store which use UIPrerenderedIcon= YES.
<key>UIPrerenderedIcon</key> <true/>
UIApplication* myApplication = [UIApplication sharedApplication];
myApplication.networkActivityIndicatorVisible = YES;
Network Activity Indicator
Check the opensource cool stuff about iPhone programming here at:-
http://code.google.com/p/iphone-sdk-programming-book-code-samples/