【发布时间】:2012-06-19 20:48:25
【问题描述】:
我正在使用以下代码制作不同的 UIView 的可点击(它们不是从 UIControl 继承的):
UITapGestureRecognizer* gesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(userTappedOnLink:)];
[labelView setUserInteractionEnabled:YES];
[labelView addGestureRecognizer:gesture];
但我也想在它们突出显示时更改样式。我该怎么做?
【问题讨论】:
标签: iphone objective-c xcode ios