Я хочу реализовать меню слайдов в моем приложении iOS, таком как ящик (Andriod). Я прошел учебник, но все они используют сторонние библиотеки. Есть ли возможность создать пользовательское меню слайдов. Я попытался создать его со следующим кодом, но он работает только с файлом xib:
- (IBAction)sidemenu:(id)sender
{
    [UIView animateWithDuration:0.50f animations:^{
        view.frame = self.view.frame;
    } completion:^(BOOL finished) {
        swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(SwipGestureLeftAction:)];
        swipeLeft.direction = UISwipeGestureRecognizerDirectionLeft;
        [self.view addGestureRecognizer:swipeLeft];
    }];
 }
- (void)SwipGestureAction
{
    UISwipeGestureRecognizer *swiperight = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(SwipGestureRightAction:)];
    swiperight.direction = UISwipeGestureRecognizerDirectionRight;
    [self.view addGestureRecognizer:swiperight];
}
#pragma mark AddSwipeGestureLeftAndRight
- (void)SwipGestureRightAction:(UISwipeGestureRecognizer *)swipeRight
{
    [UIView animateWithDuration:0.50f animations:^{
        view.frame = self.view.frame;
    } completion:^(BOOL finished) {
        swipeLeft = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(SwipGestureLeftAction:)];
        swipeLeft.direction = UISwipeGestureRecognizerDirectionLeft;
        [self.view addGestureRecognizer:swipeLeft];
    }];
}
- (void)SwipGestureLeftAction:(UISwipeGestureRecognizer *)swipeRight
{
    [UIView animateWithDuration:0.50f animations:^{
        [view setFrame:CGRectMake(self.view.frame.origin.x - self.view.frame.size.width, self.view.frame.origin.y, self.view.frame.size.width, self.view.frame.size.height)];
    } completion:^(BOOL finished){
        [self.view removeGestureRecognizer:swipeLeft];
    }];
}
