Where can I get, programmatically, the current visible View / Window size?
especially relevant when changing orientation.
e.g. for Retina 4, I wish to get:
- Upon Portrait: 'h = 568.00, w = 320.00'.
- Upon Landscape: 'h = 320.00, w = 568'.
I've tried several elements and always get the same values (no matter what the orientation is):
[UIScreen mainScreen].bounds.size;
[UIScreen mainScreen].currentMode.size;
[UIApplication sharedApplication].delegate.window.bounds.size;