It doesn't rotate correctly in my project. I'm using swift, xcode 6.4 and autolayout  