Fixed rotation issues for iPad and iOS8.