I'm trying to get screen size and get like following.
CGRect deviceSize = [UIScreen mainScreen].bounds;
But when device is rotated (from upside to left), deviceSize's size value is not changed.
How to get changed screen size when rotated?
Is there a supported API or make manually?