i have number of uitextviews in viewcontroller. using textviewdidchange method handle user interaction:
func textviewdidchange(textview: uitextview) { // } my question is, how determine textview initiating function, i.e. textview sender?
you can try simple technique.
func textviewdidchange(textview: uitextview) { //textview(sender) if(textview == yourtextview) { //do } }
Comments
Post a Comment