Detecting application supported orientations. It fixes iOS8 rotation issues while starting application (Either landscape mode was not working well or in portrait mode application was throwing exceptions).