Check interface orientation. 

For example, when I run my code on simulator deviceOrientationDidChange did called twice. Second time I receive UIDeviceOrientationUnknown.