/ Published in: Objective C
Expand |
Embed | Plain Text
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];
You need to login to post a comment.
