Check interface orientation. For example, when I run my code on simulator deviceOrientationDidChange did called twice. Second time I receive UIDeviceOrientationUnknown.
Merge pull request #30 from mkutgt72/master

Check interface orientation.