mopub/mopub-client — pull request #51 by sclamage (2012-04-06 22:34:32+00:00)
Title: Making MPInterstitialAdController more robust

Our app would like to present ads on multiple view controllers, but I don't want them all to have to implement MPInterstitialAdControllerDelegate. This fix splits up the 'parent' property into separate 'parent' and 'delegate' properties. The parent is used to control the UIViewController to present ads on, and the delegate is where the callback notifications should be sent.

Note that this change would require all clients to update to the new API. This doesn't bother me but it might bother you. I guess you could try to do something fancy with conformsToProtocol: for legacy clients but this commit is certainly sufficient for our needs.