Note that there are some explanatory texts on larger screens.

plurals
  1. POEXC_BAD_ACCESS in device, not in simulator
    primarykey
    data
    text
    <p>I have implemented adwhirl in my project. I have implemented it previously in my projects, so I just incorporated it into my current project from my previous.</p> <pre><code>- (UIViewController *)viewControllerForPresentingModalView { { return self; } </code></pre> <p>I had used this in my previous projects..since my window.rootvviewcontroller was self only. But in my current project there are many screens on which I am showing ads, so I have used: </p> <pre><code>- (UIViewController *)viewControllerForPresentingModalView { { return return [[(AppDelegate *)[[UIApplication sharedApplication] delegate] window] rootViewController] ;; } </code></pre> <p>The main problem is the program was crashing, and still is. At first everything was okay: iads test ads loaded up, but it crashed rarely. I soon understand it was because of <strong>Admob</strong>. It crashed rarely because admob ads were not loaded most of the time.</p> <p>Now searching for these crashes, I came across a point that since I have made the project in Xcode 4.2 rather than my previous projects Xcode 4.0 there were strong attributes in my window and view controller. I removed it.</p> <p>Now the problem is in simulator it doesn't crash but it crashes in device.</p> <p>The error is after I have <strong>added adview as a subview</strong> and it has <code>- (UIViewController *)viewControllerForPresentingModalView</code> went through this function <strong>but before</strong> <code>adWhirlDidReceiveAd</code> method.</p> <p>The actual crash is <strong>[GADRequestPrivate spamSignals] EXC_BAD_ACCESS.</strong></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload