我正在构建一个应用程序,我正在使用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; }
请帮帮我。