I do not think there is any method that will give you this information. However, as a rule, there are 20 points between controls and the edges of the screen and 8 points between controls (table cells may be different).
The exceptions are UIPicker controls, which extend completely on the iPhone screen and possibly several others.
source
share