无论如何检测用户是否点击了超级按钮?
// initialize uber request button
if (!_rideRequestButton) {
_rideRequestButton = [[UBSDKRideRequestButton alloc] initWithClient:self.ridesClient];
_rideRequestButton.delegate = self;
}
答案 0 :(得分:2)
我发现我可以在按钮上添加目标操作
[_rideRequestButton addTarget:self
action:@selector(rideRequestButtonIsTapped:)
forControlEvents:UIControlEventTouchUpInside];
- (void)rideRequestButtonIsTapped:(UBSDKRideRequestButton *)button
这种方法也是uber推荐的:
答案 1 :(得分:0)