Textview with edited options (submenu(

class TextViewWithoutMenu: UITextView { override func canPerformAction(action: Selector, withSender sender: AnyObject?) -> Bool { switch action { case "cut:", "delete:", "paste:", "_transliterateChinese:", "_showTextStyleOptions:", "_define:", "_addShortcut:", "_accessibilitySpeak:", "_accessibilitySpeakLanguageSelection:", "_accessibilityPauseSpeaking:", "_share:", "makeTextWritingDirectionRightToLeft:", "makeTextWritingDirectionLeftToRight:", "_showKeyboard:", "_promptForReplace:": return false default: return true } } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.