Minor changes suggested by Aina.
Fixed #172. shouldautorotate function was never called because because rotation constraints were set in other place. Fixed using a mask for the custom |adaptPhoneOrientation:|