Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><em><strong>Minimum deployment target</em></strong><br> The first question is: <strong>what is a sensible minimum deployment target?</strong> Seeing as this is a universal application, we should use iOS 4.2, as this is the first version that is unified between iPhone and iPad.</p> <p>Question arises: what fraction of ad-clicking customers do we lose? eg is it worth supporting 4.0 just to get an extra 15% of customers?</p> <p><a href="http://insights.chitika.com/2011/ios-update-ipads-iphones-running-high-rate-of-ios-4/" rel="nofollow">http://insights.chitika.com/2011/ios-update-ipads-iphones-running-high-rate-of-ios-4/</a> shows that you still pick up 80% of ad-clicking customers if you select 4.2. </p> <p>Obviously this fraction is going to increase with time, so I'm going for the easiest coding option rather than trying to squeeze every last penny out of the market.</p> <p>This has an added benefit:</p> <pre><code>// Supported sizes of banner ads available from ad server. Dimensions are in points, not pixels. // The dimensions are part of the value names to assist with design-time planning for view layout. extern NSString * const ADBannerContentSizeIdentifier320x50 __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA,__MAC_NA,__IPHONE_4_0,__IPHONE_4_2); extern NSString * const ADBannerContentSizeIdentifier480x32 __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_NA,__MAC_NA,__IPHONE_4_0,__IPHONE_4_2); extern NSString * const ADBannerContentSizeIdentifierPortrait __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_2); extern NSString * const ADBannerContentSizeIdentifierLandscape __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_4_2); </code></pre> <p>ie We can use the new symbols, which are generic (ie work for both iPhone and iPad)</p> <pre><code>strPortrait = ADBannerContentSizeIdentifierPortrait; // ADBannerContentSizeIdentifier320x50; strLandscape = ADBannerContentSizeIdentifierLandscape; // ADBannerContentSizeIdentifier480x32; </code></pre> <p><em><strong>The banner can be either horizontal or vertical</em></strong>, so you need to load in:</p> <pre><code>[self.adBannerView setRequiredContentSizeIdentifiers: [NSSet setWithObjects: strPortrait, strLandscape, nil] ]; </code></pre> <p>Then when the screen turns 90°, the AdBannerView needs to be told:</p> <pre><code>[self.adBannerView setCurrentContentSizeIdentifier: isLandscape ? strLandscape : strPortrait ]; </code></pre> <p>Directly after this is set, you can query <strong>self.adBannerView.frame</strong> and get the new size</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.
    1. This table or related slice is empty.
    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