230 self = [super init];
231
232 UIPanGestureRecognizer* panGestureRecognizer = [[UIPanGestureRecognizer alloc] init];
233 panGestureRecognizer.maximumNumberOfTouches = 1;
234 [panGestureRecognizer addTarget:self action:@selector(panGestureAction:)];
235 [self addGestureRecognizer:panGestureRecognizer];
236
237 UITapGestureRecognizer* tapGestureRecognizer = [[UITapGestureRecognizer alloc] init];
238 [tapGestureRecognizer addTarget:self action:@selector(tapGestureAction:)];
239 [self addGestureRecognizer:tapGestureRecognizer];
240
241 UIPinchGestureRecognizer* pinchGestureRecognizer = [[UIPinchGestureRecognizer alloc] init];
242 [pinchGestureRecognizer addTarget:self action:@selector(pinchGestureAction:)];
243 [self addGestureRecognizer:pinchGestureRecognizer];
244
245 UISwipeGestureRecognizer* swipeRightGestureRecognizer = [[UISwipeGestureRecognizer alloc] init];
246 swipeRightGestureRecognizer.direction = UISwipeGestureRecognizerDirectionRight;
247 [swipeRightGestureRecognizer addTarget:self action:@selector(swipeRightGestureAction:)];
248 [self addGestureRecognizer:swipeRightGestureRecognizer];
249
250 UISwipeGestureRecognizer* swipeLeftGestureRecognizer = [[UISwipeGestureRecognizer alloc] init];
251 swipeLeftGestureRecognizer.direction = UISwipeGestureRecognizerDirectionLeft;
252 [swipeLeftGestureRecognizer addTarget:self action:@selector(swipeLeftGestureAction:)];
253 [self addGestureRecognizer:swipeLeftGestureRecognizer];
254
255
256 [panGestureRecognizer requireGestureRecognizerToFail:swipeLeftGestureRecognizer];
257 [panGestureRecognizer requireGestureRecognizerToFail:swipeRightGestureRecognizer];
258
259 fWindow = initWindow;
260
261 return self;
262}