I would like to test my app’s ability to handle orientation changes (portrait/landscape). I’m currently using KIF and as far as I know, it cannot do this. Is there a way to simulate the rotation events programmatically for the iOS simulator?
I don’t care if it is some undocumented private API or hack because this will only run during testing and will not be part of production builds.
Here is a step to achieve this:
Note: Keep your device flat on a table or the accelerometer updates will rotate the view back.