Revision: 52087
Updated Code
at October 13, 2011 01:44 by paki
Updated Code
UIImage *imgBtnBack = [[UIImage imageNamed:@"button_left.png"] stretchableImageWithLeftCapWidth:15 topCapHeight:0]; UIButton *btnBack = [UIButton buttonWithType:UIButtonTypeCustom]; [btnBack setBackgroundImage:imgBtnBack forState:UIControlStateNormal]; [btnBack setTitle:@" Back" forState:UIControlStateNormal]; [btnBack titleLabel].font = [UIFont boldSystemFontOfSize:11.0]; [btnBack setTitleColor:[UIColor colorWithRed:244.0/255.0 green:190.0/255.0 blue:0.0/255.0 alpha:255.0/255.0] forState:UIControlStateNormal]; btnBack.frame = CGRectMake(6, 6, 58, 34); [btnBack addTarget:self action:@selector(viewGoBack:) forControlEvents:UIControlEventTouchUpInside];
Revision: 52086
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 13, 2011 01:43 by paki
Initial Code
UIImage *imgBtnBack = [[UIImage imageNamed:@"button_left.png"] stretchableImageWithLeftCapWidth:15 topCapHeight:0]; UIButton *btnBack = [UIButton buttonWithType:UIButtonTypeCustom]; [btnBack setBackgroundImage:imgBtnBack forState:UIControlStateNormal]; [btnBack setTitle:@" Back" forState:UIControlStateNormal]; [btnBack titleLabel].font = [UIFont boldSystemFontOfSize:11.0]; [btnBack setTitleColor:[UIColor colorWithRed:244.0/255.0 green:190.0/255.0 blue:0.0/255.0 alpha:255.0/255.0] forState:UIControlStateNormal]; btnBack.frame = CGRectMake(6, 6, 58, 34); [btnBack addTarget:self action:@selector(viewGoBack:) forControlEvents:UIControlEventTouchUpInside];
Initial URL
Initial Description
Initial Title
UIButton With Custom Stretchable UIImage
Initial Tags
Initial Language
Objective C