2014年9月12日金曜日

ios8 対応


あるサイトからコピー
1.アプリの異常終了 
   変数のライフサイクルがかわったからです。
   例 
-(void)
{ 
ClassViewControllerA * classViewControllerA = [ [ClassViewControllerA alloc] init...];  
self presentView classViewControllerA; 
} 
classViewControllerAを@propertyにした方がいいです。
 
 
2.カスタムイズのUIViewのサイズが大きくなった 
ビューのサイズが無視され、対策はViewをFreeFormにして、またはFrameを手動で設定する・ 
  
3.カスタムイズのUIActionSheetのSubView表示できない 

  
4.子クラスの中のプロパテリ名が親クラスの中の同じ名前のプロパテリがconfilctになった
  
5.マップが動かなくなった
対応策
    location = [[CLLocationManager allocinit]; 
 
location.delegateself; 
[locationrequestAlwaysAuthorization]; 

 
 
Plistの中に以下を追加
    NSLocationWhenInUseDescriptionNSLocationAlwaysUsageDescription

- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status 
{ 
    switch (status) { 
casekCLAuthorizationStatusNotDetermined: 
            if ([location respondsToSelector:@selector(requestAlwaysAuthorization)]) { 
[locationrequestAlwaysAuthorization]; 
            } 
            break; 
        default: 
            break; 
 
 
    } 
} 

 
 
 

0 件のコメント: