Я пытался сделать кнопку uber, когда вы нажимаете кнопку, все, что я хочу, это открыть приложение uber с местом высадки.
Я уже читал там api (https://github.com/uber/rides-ios-sdk) и я сделал именно то, что он говорит, но когда я нажимаю кнопку uber, все, что он делает, это открывает приложение uber без указания местоположения.
Это мой код, подскажите где
CLLocation *loc = [[CLLocation alloc]initWithLatitude:26.410640 longitude:50.099568];
UBSDKRideRequestButton *button = [[UBSDKRideRequestButton alloc] init];
UBSDKRidesClient *ridesClient = [[UBSDKRidesClient alloc] init];
CLLocation *pickupLocation = [[CLLocation alloc] initWithLatitude: self.locationManager.location.coordinate.latitude longitude: self.locationManager.location.coordinate.longitude];
CLLocation *dropoffLocation = [[CLLocation alloc] initWithLatitude: loc.coordinate.latitude longitude: loc.coordinate.longitude];
__block UBSDKRideParametersBuilder *builder = [[UBSDKRideParametersBuilder alloc] init];
builder = [builder setPickupLocation: pickupLocation];
builder = [builder setDropoffLocation: dropoffLocation];
[ridesClient fetchCheapestProductWithPickupLocation: dropoffLocation completion:^(UBSDKUberProduct* _Nullable product, UBSDKResponse* _Nullable response) {
if (product) {
builder = [builder setProductID: product.productID];
button.rideParameters = [builder build];
[button loadRideInformation];
}
}];
[self.view addSubview:button];
fetchCheapestProductWithPickupLocation
. Оценки времени и цены на кнопке должны быть неверными из-за путаницы в местоположении. - person Alexander Graebe   schedule 07.08.2016