测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
授权协议 | MIT |
发布时间最新发布 | 2015年2月 |
由 David Runemalm 维护。
当您想以某种方式显示位于前端视图控制器后面的视图控制器时,请使用 DRRevealViewController。典型的用法包括类似于 Eurosport iPhone 应用程序中的“滑动菜单”(见上面的示例)。
版本 0.0.1
要运行示例项目,请克隆存储库,然后从 Example 目录中首先运行 pod install
。
以下是一个速成示例,展示了您的实例可能的样子
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil];
DRFrontViewController<DRRevealWrappedFrontControllerDelegate> *frontViewController = [storyBoard instantiateViewControllerWithIdentifier:@"FrontView"];
DRMenuViewController<DRRevealSideControllerDelegate> *menuViewController = [storyBoard instantiateViewControllerWithIdentifier:@"MenuView"];
DRRevealViewController *revealViewController = [[DRRevealViewController alloc] initWithLeftViewController:menuViewController
andWrapNeedingFrontViewController:frontViewController];
self.window.rootViewController = revealViewController;
[self.window makeKeyAndVisible];
return YES;
}
David Runemalm, [email protected]
DRRevealViewController 在 MIT 授权协议下提供。有关更多信息,请参阅 LICENSE 文件。