Tuesday, September 21, 2010

Collateral Damage: iPhone Tutorial ~ UIButtons and Animation

Collateral Damage: iPhone Tutorial ~ UIButtons and Animation: "[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5]; //Sets the Animation time to .5 Seconds

/*The Below Sets the transition to flip the button from the right. */
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:btnMyButton cache:YES];

[UIView commitAnimations];//Starts the Animation"

Monday, March 8, 2010

Apple’s iPad Launching April 3

This morning, Apple finally announced the release date for its anticipated iPad, detailing that the tablet device will be available starting Saturday, April 3.

Monday, February 1, 2010

Start Developing iPad Apps with iPhone SDK 3.2 beta

iPhone Developer Program Members can start developing the next generation of applications for iPad with iPhone SDK 3.2 beta, now available in the iPhone Dev Center.

The iPhone Dev Center also provides members with additional resources including the iPad Programming Guide, iPad Human Interface Guidelines, Preparing Universal Applications, and sample code.

Wednesday, January 20, 2010

Adding custom view in Navigation Bar

For my example I used label, you can use any view.

CGRect labelFrame = CGRectMake( 0, 0, 100, 20);
UILabel *aLabel = [[UILabel alloc] initWithFrame:labelFrame];
aLabel.font = [UIFont systemFontOfSize:13];

aLabel.textColor = [UIColor colorWithRed:0.22 green:0.0 blue:0.0 alpha:2.0];
aLabel.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0];
aLabel.textAlignment = UITextAlignmentRight;

aLabel.text = @"Custom";
//Important lines
UIBarButtonItem *aLabelItem = [[UIBarButtonItem alloc] initWithCustomView:aLabel];
self.navigationItem.rightBarButtonItem = aLabelItem;
//dont forget to release lable
[aLabel release];

Monday, January 18, 2010

Setting background color of UIView as of TableView

Setting the background color of UIView to background color used for table view by iPhone OS is pretty east . Just put the following line of code in your viewController's viewDidLoad or any UI initialization method.


self.view.backgroundColor = [UIColor groupTableViewBackgroundColor];


And here you go...


Wish You All Belated Happy New Year....