Class: UITextView_Delegate

Inherits:
Object show all
Defined in:
lib/formotion/patch/ui_text_view.rb

Instance Method Summary collapse

Instance Method Details

#textView(textView, shouldChangeTextInRange: range, replacementText: text) ⇒ Object



97
98
99
100
101
102
# File 'lib/formotion/patch/ui_text_view.rb', line 97

def textView(textView, shouldChangeTextInRange:range, replacementText:text)
  if self.shouldChangeCharactersInRange_callback
    return self.shouldChangeCharactersInRange_callback.call(textView, range, text)
  end
  true
end

#textViewDidBeginEditing(theTextView) ⇒ Object



84
85
86
87
88
# File 'lib/formotion/patch/ui_text_view.rb', line 84

def textViewDidBeginEditing(theTextView)
  if self.textViewDidBeginEditing_callback
    return self.textViewDidBeginEditing_callback.call(theTextView)
  end
end

#textViewDidChange(theTextView) ⇒ Object



110
111
112
113
114
# File 'lib/formotion/patch/ui_text_view.rb', line 110

def textViewDidChange(theTextView)
  if self.textViewDidChange_callback
    self.textViewDidChange_callback.call(theTextView)
  end
end

#textViewDidEndEditing(theTextView) ⇒ Object



104
105
106
107
108
# File 'lib/formotion/patch/ui_text_view.rb', line 104

def textViewDidEndEditing(theTextView)
  if self.textViewDidEndEditing_callback
    return self.textViewDidEndEditing_callback.call(theTextView)
  end
end

#textViewShouldBeginEditing(theTextView) ⇒ Object



77
78
79
80
81
82
# File 'lib/formotion/patch/ui_text_view.rb', line 77

def textViewShouldBeginEditing(theTextView)
  if self.textViewShouldBeginEditing_callback
    return self.textViewShouldBeginEditing_callback.call(theTextView)
  end
  true
end

#textViewShouldEndEditing(theTextView) ⇒ Object



90
91
92
93
94
95
# File 'lib/formotion/patch/ui_text_view.rb', line 90

def textViewShouldEndEditing(theTextView)
  if self.textViewShouldEndEditing_callback
    return self.textViewShouldEndEditing_callback.call(theTextView)
  end
  true
end