Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
你好,
我正在 Xcode 4.3.2 中开发一个应用程序。我有一个小问题,我想在我的代码中一次启用滚动视图属性UITextView并禁用 (copy,selectAll,define) 属性。UITextView
UITextView
可能吗?
子类化UITextView和覆盖canBecomeFirstResponder:
canBecomeFirstResponder
- (BOOL)canBecomeFirstResponder { return NO; }
- (BOOL)canPerformAction:(SEL)action withSender:(id)sender { return NO; }