スキップしてメイン コンテンツに移動

投稿

1月, 2014の投稿を表示しています

WGS84

WGS84 :World Geodetic System 1984,是为GPS 全球定位系统 使用而建立的坐标系统。通过遍布世界的 卫星观测站 观测到的坐标建立,其初次WGS84的精度为1-2m,在 1994年 1月2日,通过10个观测站在GPS测量方法上改正,得到了WGS84(G730),G表示由GPS测量得到,730表示为GPS时间第730个周。 1996年,National Imagery and Mapping Agency (NIMA) 为 美国国防部  (U.S.Department of Defense, DoD)做了一个新的坐标系统。这样实现了新的WGS版本:WGS(G873)。其因为加入了 美國海軍天文台 和北京站的改正,其东部方向加入了31-39cm 的改正。所有的其他坐标都有在1分米之内的修正。

keyframe animation

UIView *view = [[ UIView alloc ] initWithFrame : CGRectMake (100.0f, 100.0f, 120.0f, 120.0f)];     view. backgroundColor = [ UIColor redColor ]; // 初期表示は赤色     [ self . view addSubview :view];          // 2 秒間キーフレームアニメーションを実行する(逆再生&リピート)     [ UIView animateKeyframesWithDuration :2.0                                    delay :0.0                                  options : UIViewKeyframeAnimationOptionAutoreverse | UIViewKeyframeAnimationOptionRepeat                               animations :^{                                   // 0.8 秒間( 2.0 * 0.4 )かけて背景を黄色に     ...

receipt

    [ self checkReceipt ];          return YES ; } //check whether purchased, if purchased, remove ads. -( void )checkReceipt{      //Get the receipt URL     NSURL *receiptURL = [[ NSBundle mainBundle ] appStoreReceiptURL ];          //Check if it exists     if ([[ NSFileManager defaultManager ] fileExistsAtPath :receiptURL. path ]) {         //Encapsulate the base64 encoded receipt on NSData         NSData *receiptData = [ NSData dataWithContentsOfFile :receiptURL. path ];                                    NSString *base64Receipt = [ self base64ForData :receiptData];                  NSLog ( @"base64Receipt >- %@" , base64Receipt);      ...