59000

RevMob check Banner is loaded or not in iPhone?

Question:

I am using Revmob Framework for displaying ad banners and it's working fine.

So now my Question is that how to know programmatically that banner is loaded or not?

Like if we are using iads then there is a method "isBannerLoaded" to check banner is loaded or not.

Actually I want to set it's frame as banner is loaded or not loaded.

So is there any method like "isBannerLoaded" in Revmob Framework?

Answer1:

You need to implement the revMobDelegate and use revmobAdDidReceive:

@interface MyAdClass : NSObject <RevMobAdsDelegate> ... @implementation MyAdClass -(void) prepare { ... ad = [[[RevMobAds session] bannerView] retain]; ad.delegate = self; [ad loadAd]; ... } - (void)revmobAdDidReceive { NSLog(@"ad received"); ... }

You can find RevMobAdsDelegate documentation at <a href="http://sdk.revmob.com/ios-api/Protocols/RevMobAdsDelegate.html" rel="nofollow">http://sdk.revmob.com/ios-api/Protocols/RevMobAdsDelegate.html</a>

Recommend

  • pysvn get latest revision number for specific directory (not head)
  • grunt-usemin not replacing reference block with revved file line
  • How to create a project sheet via the python SDK
  • How to set the root of git repository to vi/vim find path?
  • The time complexity for a code segment
  • Querying for User Story revisions in Rally
  • Native Browser Automation using Appium 1.2.0.1 on Windows 7 Android real device: Could not find a co
  • MySQL: list of sum for several conditions in one SQL statement
  • How to squash two commits which are actually before a merge commit?
  • Finding a file by its corresponding blob's hash in a git repository?
  • VBA-Json Parse Nested Json
  • NLTK Classifier giving only negative as answer in Sentiment Analysis
  • C#, HTTPClient - IfMatch format requirements?
  • How to Undo Subversion commit
  • Object Mapping an empty response with RestKit
  • Reset to the very first commit in Git?
  • How to programmatically dismiss system dialogs like “ would like to access your photos”?
  • Why would my app not be able to “attach” an action?
  • Comparing user's facebook/twitter friends to site's users in Python/Django
  • Why can't UI components be accessed from a backgroundworker?
  • wxPython: displaying multiple widgets in same frame
  • Firefox Extension - Monitor refresh and change of tab
  • How to avoid particles glitching together in an elastic particle collision simulator?
  • Recording logins for password protected directories
  • R - Combining Columns to String Based on Logical Match
  • Splitting given String into two variables - php
  • C# - Serializing and deserializing static member
  • Bug in WPF DataGrid
  • Incrementing object id automatically JS constructor (static method and variable)
  • Check if a string to interpolate provides expected placeholders
  • Trying to switch camera back to front but getting exception
  • Free memory of cv::Mat loaded using FileStorage API
  • How to set the response of a form post action to a iframe source?
  • Angular 2 constructor injection vs direct access
  • embed rChart in Markdown
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • Programmatically clearing map cache
  • reshape alternating columns in less time and using less memory
  • Unable to use reactive element in my shiny app