tags:

views:

403

answers:

1

Hello,

I am having a UITextView to display todays report. I have two buttons for going to next day and previous day.

I want to implement swipe gesture such that when the user swipes from left to right, i will display the next day and when swiped from right from left, i will show the previos day.

My problem is swipe gesture is working properly if done outside the UITextField but when i swipe on the UITextField, it is not working.

I see that UITextField implement UIResponder protocol so i believe swipe should work on UITextfield.

Any help?

A: 

Few things, some UI elements provided by apple do not allow you to override the t ouches method , i know this applies for MKMapView, i do not know if it applies to UITextView.

If you actually can override the touch method of a UITextView, are you subclassing the UITextView and overriding the touches method? if not and you are just using a UITextView then the view wont respond to touches because you have not specified it to (by subclassing and coding the touches methods).

Daniel