/ Published in: Objective C

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
UIButton* helpButton = [UIButton buttonWithType:UIButtonTypeRoundedRect]; UIImage* helpImage = [UIImage imageNamed:@"help.png"]; [helpButton setImage:helpImage forState:UIControlStateNormal]; [helpButton setImage:helpImage forState:UIControlStateHighlighted]; [helpButton setImage:helpImage forState:UIControlStateSelected]; helpButton.frame = CGRectMake(320 - 32 - 12, 480 - 32 - 12, 32, 32); [self.view addSubview:helpButton];
Comments
