Friday, April 23, 2010

iPhone SDK 4 beta


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 SDK 4 beta is available for download to members of the iPhone Developer Program.

Friday, April 9, 2010

Apple iPhone OS 4.0 : Multitasking

Apple iPhone OS 4.0 : Multitasking Part 1


Apple iPhone OS 4.0 : Multitasking Part 2


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.

Apple iPhone OS 4.0 Unvieling at Apple Special Event, April 2010 : Introduction


Apple has unveiled plans for the biggest and most exciting iPhone software update yet. iPhone OS 4 will include over 100 new user features for iPhone and iPod touch owners to enjoy. And for developers, a new software development kit (SDK) offers over 1500 new APIs to create apps that are even more powerful, innovative, and amazing.

Friday, February 12, 2010

Load background image of Button using programing code

There is a method called viewDidLoad in the controller's super class. It will be called after our view loaded. We can override it to do something after the view had been loaded, such as load background image to a button.



- Start a new iPhone OS Application using View-Based Application Template. Add a Button using Interface Builder. Assign the Tag of the button, say 10.

- Drag a image into the Resources folder. eg. Home.png, it will be our background image of the button.

- Modify our ViewController.m, un-comment the method viewDidLoad and add the code below.

- (void)viewDidLoad {
UIImage *buttonImage_Home = [UIImage imageNamed:@"Home.png"];
UIImage *stretchableButtonImageNormal = [buttonImage_Home stretchableImageWithLeftCapWidth:12 topCapHeight:0];
UIButton *homeButton = (UIButton *)[self.view viewWithTag:10];
[homeButton setBackgroundImage:stretchableButtonImageNormal forState:UIControlStateNormal];
}




Saturday, January 30, 2010

ipad development



Wednesday, January 27, 2010

Download iPhone SDK 3.2 beta today, start developing iPad Apps.


iPhone Developer Program members can download iPhone SDK 3.2 beta today, start developing the next generation of innovative applications for new Apple iPad.


iPhone SDK 3.2 beta
iPhone SDK 3.2 beta contains all the tools you need to start developing and optimizing iPhone OS applications for iPad.
iPad Simulator
The iPad Simulator lets you build and run your iPad application on your Mac, allowing you to lay out your user interface for the larger screen size, test your app’s memory usage, and shorten the debug cycle in the design process.
iPad Programming Guide
iPad provides new opportunities to create Multi-Touch iPhone OS applications on a larger display than ever. The iPad Programming Guide introduces new features available for iPad and how to implement those features in your applications.
iPad Human Interface Guidelines
Design an incredible user interface and user experience for your iPad application by following the iPad Human Interface Guidelines. Learn how to effectively use the new views and controls available to you to deliver unforgettable applications to your customers.
iPad Sample Code
Get started developing innovative universal applications for iPad, iPhone and iPod touch by downloading iPad sample code. Each sample code project is buildable and provides an example of how to accomplish a task for a specific technology.
Preparing Universal Applications
Developers can now start planning for universal applications, allowing them to take full advantage of the technologies found on iPad, iPhone, and iPod touch with a single binary.



Learn More...

Monday, January 11, 2010

AlertView

The creation and usage of Alert is very similar to Action Sheet.

Here, a AlertView will be shown if user click NO in the Action Sheet, to prompt user that the application is kept running.




- (void)actionSheet:(UIActionSheet *)actionSheet 
didDismissWithButtonIndex:(NSInteger)buttonIndex 
{ 
    if (buttonIndex == [actionSheet destructiveButtonIndex]) 
    { 
  exit(0);
    } 
 else
 {
  UIAlertView *alert =[[UIAlertView alloc]
        initWithTitle:@"No Exit"
        message:@"Application keep running"
        delegate:self
        cancelButtonTitle:@"OK"
        otherButtonTitles:nil];
  [alert show];
  [alert release];
 }
}