2012-01-24 25 views

回答

1

嘗試使用convertPoint:toView:或convertRect:toView: UIView的方法。

因此,例如,獲得文本框的邊界相對於窗口,說

CGRect *bounds = [textField convertRect:textField.bounds toView:window]; 
+0

感謝尼克,我會試試看.. !! –

+0

再次感謝尼克.... –

相關問題