ios - Subclassing UIGestureRecognizer and returning custom UIView -
I have created my own UIView subclass with a new prototype. It is not a problem, But when I am trying to get my position of subclassed UIView , it goes wrong.
I have a gesture on my UIView and It is not recognized with sub-clinging and using a new variable because UIGestureRecognizers gives a UIView view variable.
So I subclassed UIGestureRecognizer but this does not work. I am getting an error: Banner count: BignRettingWithState: Objects: Count:]: 0xe872480
sent to unknown selector, for example, and here my code is UIGestureRecognizers in the subclass:
#import & lt; UIKit / UIKit.h & gt; #import "BannerView.h" @ Interface Gesture Rico: UIGestureRecognizer @property (nonatomic, readonly) Bannerview * View; @end How can I solve this problem or I need to handle it in any other way that UIGestureRecognizer knows that I've subclassed UIView and received the variable myself Want to UIView Class
Comments
Post a Comment