Log in

No account? Create an account

UIImage from bundle

U can open UIImage from bunlde like this
 [UIImage imageNamed:@"My.bundle/images/someImage.png"]

UITableView rounded corners

This code can be used to other view's.

There is only one line

[tableview.layer setCornerRadius:7.0];


Custom UIAllert

UIAllert with custom buttons and background.

At firtst we create UIImage with image file of background, then set's size of allert frame, and then sets it.

UIImage *theImage = [[UIImage imageNamed:@"allert_background.png"]autorelease];
CGSize theSize = [alert frame].size;
[theImage drawInRect:CGRectMake(0, 0, theSize.width, theSize.height)];
theImage = UIGraphicsGetImageFromCurrentImageContext();
[[alert layer] setContents:[theImage CGImage]];

Custom "OK" and "Custom" buttons

UIImageView *img = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bt_ok_update_base.png"]]autorelease];
UIImageView *img1 = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bt_ok.png"]]autorelease];

[[alert.subviews objectAtIndex:1] addSubview:img1];
[[alert.subviews objectAtIndex:2] addSubview:img];

Sound engine

The FMOD Ex sound system is a revolutionary new audio engine for game developers, multimedia developers, sound designers, musicians and audio engineers. Based on the years of experience from Firelight Technologies' previous products, FMOD Ex aims to push the capabilities of audio for games, whilst at the same time using minimal resources and remaining fully scalable.

Supports operational systems: Windows 32bit, Windows 64bit, Macintosh, iPhone / iPod Touch / iPad, Linux 32bit, Linux 64bit, XBox, XBox360, PS2, PSP, PS3, GameCube, Wii.

MoreCollapse )
 Joe Hewitt, has released the facebook source code library in Objective C for iPhone developers. This is a real good resource for developers that are looking to integrate their iPhone applications with Facebook. Download it from github.com/joehewitt/three20/.