あるサイトからコピー
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 alloc] init];
location.delegate= self;
[locationrequestAlwaysAuthorization];
Plistの中に以下を追加
- NSLocationWhenInUseDescriptionNSLocationAlwaysUsageDescription
- (void)locationManager:(CLLocationManager *)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status
{
switch (status) {
casekCLAuthorizationStatusNotDetermined:
if ([location respondsToSelector:@selector(requestAlwaysAuthorization)]) {
[locationrequestAlwaysAuthorization];
}
break;
default:
break;
}
}