farhan678 / adwhirl

Automatically exported from code.google.com/p/adwhirl
0 stars 0 forks source link

House Ad crashes iPhone app running on iPad 3.2 2x mode. #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make sure you have house ad serving.
2. Run an iPhone app on iPad 3.2.
3. Turn on 2x mode.
4. Wait for the House Ad to serve.

What is the expected output? What do you see instead?
It should not crash, but it crash.

What version of the product are you using? On what operating system?
AdWhirl 3.0.0 on iPad 3.2.

Please provide any additional information below.
This is due to the problem that despite what the documentation say, UIScreen 
scale property is available in iOS 3.2. This cause the code to use iOS 4.0 
functions which tend crashes.

To fix the issue, under line 345 of AdWhirlAdapterCustom.m, replace 
if (self.scale == 2.0) {
with
if ((self.scale == 2.0) && ([[[UIDevice currentDevice] systemVersion] 
floatValue] > 3.2f)) {

Original issue reported on code.google.com by khinb...@d--buzz.com on 17 May 2011 at 5:59