все работает в моем коде, но я всегда получаю предупреждение с помощью "swipeLeft.delegate = self;"
"self" помечено этим предупреждением.
Предупреждение: Передача'UIWebView *' для параметра несовместимого типа
и
Передача 'viewCont * const __strong' параметру несовместимого типа "id UIGestureRecognizerDelegate
Что я могу сделать ??
Мой код:
#import "viewCont.h"
@implementation viewCont
@synthesize webView = webView_;
- (void)viewDidLoad
{
//...code
// add Left
UISwipeGestureRecognizer *swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeLeftAction:)];
swipeLeft.direction = UISwipeGestureRecognizerDirectionLeft;
swipeLeft.delegate = self;
[webView_ addGestureRecognizer:swipeLeft];
//code....
}