I have a big problem, I have an app with a database, inside this database I stored an html page that i display on a uiwebview...there is a way for put an iAd inside webview?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- how do you prevent page scroll in textarea on mobi
- Custom UITableview cell accessibility not working
相关文章
- Could I create “Call” button in HTML 5 IPhone appl
- Unable to process app at this time due to a genera
- How do you detect key up / key down events from a
- “Storyboard.storyboard” could not be opened
- Open iOS 11 Files app via URL Scheme or some other
- Can keyboard of type UIKeyboardTypeNamePhonePad be
- Do all browsers on iOS use WKWebview or UIWebVIew?
- Can not export audiofiles via “open in:” from Voic
Don't put the iAd view in the UIWebView, make the UIWebView smaller and add the iAd view as a sibling of the UIWebView.
Do you want it to scroll? iOS 5 allows access to the scrollView of the UIWebView. You could add the iAd banner to the scrollview.
The iAd framework has a
didFailToReceiveAdWithError:
method that will get called if there is an issue pulling a new ad. If you have an Apple Developer account there is a video from WWDC 2010 that demonstrates how to use iAd. This can be found if you go to: http://developer.apple.com/videos/ which will open iTunes. Then go to WWDC 2010 Sessions -> Application Frameworks -> Session 112 - Integrating Ads with iAds.This will show you how to move the banner in and out of a view depending on if an ad is loaded correctly.
In your situation you might have something like a UIView that holds both the UIWebView and the ADBannerView. Once an add is correctly loaded you would then shrink the size of the UIWebView enough to display the ADBannerView.