0

これは私のコードですAppDelegate

iMapView = [[iMapViewController alloc] init];
    if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
    {
        CGSize result = [[UIScreen mainScreen] bounds].size;
        if(result.height == 568)
        {
            iMapView.view.frame = CGRectMake(0, 0, 568, 320);
        }
    }

    [viewController.view addSubview:iMapView.view];  // crashing here

NSZombie をオンにすると、問題が見つかりました。

[iMapViewController searchDisplayController]: message sent to deallocated instance 0xd81d740

しかし、私はsearchDisplayControllerどこでもまたはそのデリゲートを使用したことがありません。

@interface iMapViewController : UIViewController<UIAlertViewDelegate>

これは、非 ARC を使用する iOS 7 でのみ発生します。

アドバイスをお願いできますか?

ありがとうございました

4

1 に答える 1