2011-06-16 85 views
0

我的問題是當我在UIWebView中打開一本書時。當我們點擊UiWebView然後獲取CGpoint值時,假設我有2個CGPoint值。那麼如何獲取2個CGPoint值之間的字符串。獲取2個CGPoint值之間的NSString

謝謝

+1

一本書在PDF或其他? – 2011-06-16 13:41:18

回答

0

這聽起來像你試圖繪製CGPoints之間的字符串?如果是這樣,drawAtPoint:forWidth:withFont:lineBreakMode:NSString UIKit Additions Reference的任何drawInRect:方法應該訣竅

+0

沒有。我想獲得2 CG點之間的字符串。 – 2011-06-16 15:14:21

+0

我不完全確定這是否可能,儘管我覺得它應該是。我懷疑你可能想看看[文本,Web和編輯編程指南](http://developer.apple.com/library/ios/#DOCUMENTATION/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/CustomTextProcessing/CustomTextProcessing。 html),特別是「UITextInput對象的任務」小節以及[UITextInput協議參考](http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UITextInput_Protocol/Reference/Reference。 HTML) – justin 2011-06-16 15:45:15