amoikevin / adwhirl

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

ActualAdSize return default AdWhirl size all time #345

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use Custom Event for Ad which size changed for different orientation
2. Rotate device
3. ActualAdSize not changed

What is the expected output? What do you see instead?
ActualAdSize should return actual size

What version of the product are you using? On what operating system?
3.3.0

Please provide any additional information below.
- (CGSize)actualAdSize {
  if (currAdapter == nil || currAdapter.adNetworkView == nil)
    return kAdWhirlViewDefaultSize;
  return currAdapter.adNetworkView.frame.size;
}

currAdapter.adNetworkView is always equal nil when use Custom Event, so only 
default size returned!

Original issue reported on code.google.com by mikezang...@gmail.com on 7 Dec 2012 at 1:30