2017-04-07 5 views

答えて

0

地球儀または地図の設定が完了したら、– animateToPosition:time:を使用できます。私はあなたの地球儀を設定した後、このメソッドを実行する前に遅延があることをお勧めします。 たとえばObjective-Cの場合:

// Your code to setup WhirlyGlobeViewController... 

dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.000001 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ 
     MaplyCoordinate coords = MaplyCoordinateMakeWithDegrees(0, 0); 
     [self.globe animateToPosition:coords height:2.0 heading:0 time:1]; 
     }); 
関連する問題