/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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];