/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeCustom]; infoButton.showsTouchWhenHighlighted = YES; // make it flash when touched [infoButton setImage:[UIImage imageNamed:@"help.png"] forState:UIControlStateNormal]; infoButton.frame = CGRectMake(35, 20, 32, [infoButton addTarget:self action:@selector(infoButtonPressed:) forControlEvents:UIControlEventTouchUpInside]; [self addSubview:infoButton];