1

我正在构建一个应用程序,我在其中使用 AMSlideMenu 库进行滑出菜单。现在我实现了一个标签栏,并以编程方式在顶部添加了一个按钮。

现在我需要IBaction那个左滑块打开的按钮。

下面是我想在标签栏类中使用的滑出类功能。

- (CGFloat)leftMenuWidth {
    return 265; }


- (void)configureLeftMenuButton:(UIButton *)button {
    CGRect frame = button.frame;
    frame.origin = (CGPoint){0,0};
    frame.size = (CGSize){30,30};
    button.frame = frame;

    [button setImage:[UIImage imageNamed:@"icon-menu"] forState:UIControlStateNormal];

        }

//- (void)configureRightMenuButton:(UIButton *)button //{ //    CGRect frame = button.frame; //    frame = CGRectMake(0, 0, 25, 13); //    button.frame = frame; //    button.backgroundColor = [UIColor clearColor]; //    [button setImage:[UIImage imageNamed:@"simpleMenuButton"] forState:UIControlStateNormal]; //}

//- (void) configureSlideLayer:(CALayer *)layer //{ //    layer.shadowColor = [UIColor blackColor].CGColor; //    layer.shadowOpacity = 1; //    layer.shadowOffset = CGSizeMake(0, 0); //    layer.shadowRadius = 5; //    layer.masksToBounds = NO; //    layer.shadowPath =[UIBezierPath bezierPathWithRect:self.view.layer.bounds].CGPath; //}

- (UIViewAnimationOptions) openAnimationCurve {
    return UIViewAnimationOptionCurveEaseOut; }

- (UIViewAnimationOptions) closeAnimationCurve {
    return UIViewAnimationOptionCurveEaseOut; }


// Enabling Deepnes on left menu
- (BOOL)deepnessForLeftMenu {
    return NO; }

请帮我。

4

0 回答 0