[UIScreen mainScreen].bounds returns (0,0,768,1024) even when the iPad is in Landscape mode. It should return (0,0,1024,768) but instead it returns (0,0,768,1024).
How to get the iPhone screen s开发者_如何学编程ize to give calculation?You can use the bounds property on an instance of UIScreen:
When I use putty to log on to a bash shell, I want it like real term emulator in Linux. That means: I开发者_如何学Cf I set shell to vi editing mode, the cursor would be a vertical line in inserting mo