In my iPhone application there are several views and several viewControllers for these views.
I need to check how viewControllers react to device rotation (switching between portrait and landscape orientations).
I found information on the OCMock and google-toolbox-for-mac platforms, but did not find answers on this topic.
In some views, the Landscape / Portrait function may be enabled, and some may not. I need to check the view state after the number of random (or predefined) device spins.
I have no ideas on how to do this without real user action.
Can someone help me in this situation? Thanks.
source
share