UBSDKRideRequesting身份验证问题

时间:2016-07-28 09:56:41

标签: ios objective-c iphone uber-api

我尝试使用下面给出的代码登录 - 使用或不使用redirect_URI但它总是显示错误 1.验证你时遇到了问题。请稍后再试。

我检查了整个项目,但没有发现任何其他问题。

id<UBSDKRideRequesting> behavior = [[UBSDKRideRequestViewRequestingBehavior alloc] initWithPresentingViewController: self];
CLLocation *location = [[CLLocation alloc] initWithLatitude: 37.787654 longitude: -122.402760];
UBSDKRideParametersBuilder *builder = [[UBSDKRideParametersBuilder alloc] init];
[builder setPickupLocation:location];

 UBSDKRideParameters *parameters = [builder build];
 UBSDKRideRequestButton *button = [[UBSDKRideRequestButton alloc] initWithRideParameters: parameters requestingBehavior: behavior];
 button.frame=CGRectMake(10,self.view.frame.size.height+self.view.frame.origin.y,self.view.frame.size.width-20,50) ;
  [self.view addSubview:button];

请帮我解决我的问题。 感谢

0 个答案:

没有答案
相关问题