iphone - Why touches Event methods not detecting even after writing it inside the subclass of UIScrollView? -
I want to use touch event methods for UIScrollView. But it was said that if I could do this only to write the UIScrollView subclass and these actions inside it, then I liked it.
Subclassgie H @ Interface Imaging: UIScrollView {} @end All Clients. M # Imports "Imterating." @Epplimentation Imaging - (Zero) Turing Brinjal: (UIAvent *) Event Withdraw: (UIEvent *) Event {UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @ "touched" message: @ "YOOY" Representative: Zero cancellation CurtainTit: @ "yes" other button titles: zero]; [Alerts show]; [Warning issued]; } - (zero) Touch-end: (NSSET *) touches the event: (UIEVENT *) Event {UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @ "Embedded" Message: @ "YOOY" Representative: Cancel CancelButton Title: @ "Yes" otherButtonTitles: zero]; [Alerts show]; [Warning issued]; } @ And
but it has no effect. I have imported into my main_file.h. What should I do now?
Did you change your UIC Slowview outlet class type in the interface builder?
Alternatively, it would be better to use NSLog (@ "Ended"); Instead of displaying UIAlertView for your debugging purposes.
Comments
Post a Comment