MGFashionMenuView 是一个展示时具有精彩动画的视图。它适用于展示菜单、通知或动作按钮。
此代码必须在 ARC 下使用。如果您的代码不使用 ARC,可以使用编译器标志 -fobjc-arc
来标记源代码
在包中包括了用于测试对象的工程。这是一个初始化和使用控件的一个简单示例
//Init the control
MGFashionMenuView *menuView = [[MGFashionMenuView alloc] initWithMenuView:myViewToPresent andAnimationType:MGAnimationTypeWave];
[self.view addSubview:menuView];
//Show/hide menu
[menuView show];
[menuView hide];
有用的属性
//Access to property to know if the control is shown or not
[menuView isShown];
//Access to property to know if the control is performing the animation or not
[menuView isAnimating];
Matteo Gobbi
MGFashionMenuView 是根据 MIT 许可证可用的。