允许UILabel 跟用户的交互事件
_addressLabel.userInteractionEnabled = YES;
添加事件
UITapGestureRecognizer * tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(chooseAddress)];
[_addressLabel addGestureRecognizer:tapGesture];
网友评论