Closed TwentyThreeDegrees closed 9 years ago
The only thing this library is doing is listening for system rotation notifications (UIDeviceOrientationDidChangeNotification
). This is posted by iOS as a result of an orientation change, so I'm not sure why this is not being posted if you really are changing the orientation.
The orientation isn't changing, it's staying landscape the whole time when the problem occurs.
I've forced a bad fix by manually adjusting the ad frame for now which is working!
On 15 May 2014, at 18:34, Lars Anderson notifications@github.com wrote:
The only thing this library is doing is listening for system rotation notifications (UIDeviceOrientationDidChangeNotification). This is posted by iOS as a result of an orientation change, so I'm not sure why this is not being posted if you really are changing the orientation.
— Reply to this email directly or view it on GitHub.
Please fix it ;)
@paoloandrea instead of just telling me to fix it, could you perhaps provide some more information so that someone else can reproduce it?
When my app first loads a full screen iPad view the ad banner gets correctly loaded at the bottom of the view, I see two calls to viewDidLayoutSubviews, then LARS handles the orientation change and I get another call to viewDidLayoutSubviews:
This works well. When the view is removed and I make a new instance of the view however I get this:
There is no update to handle the orientation change, the Ad container appears in the middle of the view (and slightly off screen) - this only appears to happen in landscape view on my iPad though. I can see that the code to add the Ad container gets called (it's in viewDidLoad) both times.