objective c - Descendant as an parent's delegate -
Let's say that I want to make the text view of your own with the most letters. And I want to be bound in the lower level - in the text view.
code I think <> CustomTextView: UITextView where But does it not work in some way, can I get an explanation, why or what may be wrong and how can I achieve my intentions? If you are sub-cloning UITextView, you need to set yourself as a rep Why is that? The representative is used to notify the code outside of UITextView that has changed to some UITQviewview. This means that UITextView has been notified about changes in its own form and using the representative, you can inform what happened to the external code (UIViewController, etc.). If you are sub-cloning UITextView, then you should receive those change notifications from the OS. However, looking for documentation, I can not see how you will track the underlying events by the sub-category alone. Here's an article that I've found with a Google search: customTextView.delegate will be the same object - customTextView ( self.delegate = self ). The class definition will be custom textview: Uitick & lt; UITextVIewDelegate & gt; and I รข ???? Will implement TextView: shouldChangeTextInRange: replacement text: to constrain the logic
Comments
Post a Comment