»
S
I
D
E
B
A
R
«
New Features In iPhone OS 4.0
Apr 9th, 2010 by Anish Kumar

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.

Multitasking

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:

  • Background audio – Allows your app to play audio continuously. So customers can listen to your app while they surf the web, play games, and more.
  • Voice over IP – Your VoIP apps can now be even better. Users can now receive VoIP calls and have conversations while using another app. Your users can even receive calls when their phones are locked in their pocket.
  • Background location – Navigation apps can now continue to guide users who are listening to their iPods, or using other apps. iPhone OS 4 also provides a new and battery efficient way to monitor location when users move between cell towers. This is a great way for your social networking apps to keep track of users and their friends’ locations.
  • Push notifications – Receive alerts from your remote servers even when your app isn’t running.
  • Local notifications – Your app can now alert users of scheduled events and alarms in the background, no servers required.
  • Task finishing – If your app is in mid-task when your customer leaves it, the app can now keep running to finish the task.
  • Fast app switching – All developers should take advantage of this. This will allow users to leave your app and come right back to where they were when they left – no more having to reload the app.

Read the rest of this entry »

Apple releases iPhone OS SDK 3.1.2
Oct 9th, 2009 by Anish Kumar

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 User Group Kick Off Meeting
Sep 8th, 2009 by Anish Kumar
Titanium Developer Meet, Bangalore

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.

Read the rest of this entry »

iPhone SDK: How To Set Max Character length in UITextField
May 14th, 2009 by Anish Kumar

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;
    }
}
iPhone: Place A UIView On Top Of Other Views
May 14th, 2009 by Anish Kumar

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.

Read the rest of this entry »

NSTask Removed From IPhone SDK 3.0
May 4th, 2009 by Anish Kumar

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.

Read the rest of this entry »

Render iPhone Application Icon Without The Sheen and Bevel Effects
Apr 30th, 2009 by Anish Kumar
UIPrerenderedIcon

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/>
Show Network Activity Status Indicator
Apr 22nd, 2009 by Anish Kumar

UIApplication* myApplication = [UIApplication sharedApplication];

myApplication.networkActivityIndicatorVisible = YES;

Network Activity Indicator

Network Activity Indicator

iPhone SDK programming book code samples
Apr 7th, 2009 by Anish Kumar

Check the opensource cool stuff about iPhone programming here at:-

http://code.google.com/p/iphone-sdk-programming-book-code-samples/

Read the rest of this entry »