0

6.1 の更新以降、CLLocation 情報を含むすべての写真の最初の 25% しか反転できません。

最初の 25% の後、他のすべてについて取得します: Error Domain=kCLErrorDomain Code=2 "The operation could not be completed. (kCLErrorDomain error 2.)".

私はすべての画像を処理しているので、サービスを頻繁に呼び出しすぎているのではないでしょうか? しかし、この点に関する制限はどこにも言及されていません:S

コード

CLLocation *location = [asset valueForProperty:ALAssetPropertyLocation];
if(location != nil){
    CLGeocoder * geoCoder = [[CLGeocoder alloc] init];
    [geoCoder reverseGeocodeLocation:location completionHandler:^(NSArray *placemarks, NSError *error)
    {
        if(placemarks.count == 0){
            // this happens with more than 75% of the photos
            return;
        }
        // this only happens with the other 25%
    }];
}

ありがとう!

4

1 に答える 1

0

不明な時間あたり 50 件のリクエストに制限があるというこの回答を見つけました。

于 2013-02-06T12:44:05.977 に答える