开发者

iphone UITextView exception

开发者 https://www.devze.com 2023-01-11 22:04 出处:网络
The following code goes to exception for 3.1.3: [textView select:self] unrecognized selector sent to instance etc..

The following code goes to exception for 3.1.3:

[textView select:self]

unrecognized selector sent to instance etc..

But the same code is working for 3.2.

I don't understand the error since this function is available starting from IPHONE_3_0 !!!

Thank开发者_StackOverflow社区s for help


Using a private API, I can perform cut/copy/paste for 3.1.3

For example: select

[[textView webView] select:self];

It seems that the UIWebView child of text view is the first responder for these edit actions.

By the way, on iPad(3.2), the UITextView implements the informal protocol UIResponderStandardEditActions directly!

0

精彩评论

暂无评论...
验证码 换一张
取 消