CHSlideController 2.8.2

CHSlideController 2.8.2

测试已测试
语言语言 Obj-CObjective C
许可证 NOASSERTION
发布最后发布2019年1月

Clemens Hammerl维护。



  • 作者:
  • Clemens Hammerl

CHSlideController

Pod Version Pod License Pod Platform

Alt text Alt text Alt text

关于

这是一个易于使用的ViewController容器,模仿了facebook菜单详情的实现方式。它非常灵活、可配置、具有动画效果,可以响应滑动手势。适用于iPhone和iPad。使用ARC。

使用方法

  • 参考示例项目
  • 将CHSlideController拖放到您的项目中
  • 从CHSlideController继承以处理静态和滑动控制器之间的通信

设置控制器(示例)

	// Assign the controllers in CHSlideController subclass
     self.leftStaticViewController = [UIViewController new];
     self.rightStaticViewController = [UIViewController new];
     self.slidingViewController = [UIViewController new];

默认行为

	// Animates the Sliding View in
	-(void)showSlidingViewAnimated:(BOOL)animated;

	// Animated the Sliding View out to the right
	-(void)showLeftStaticView:(BOOL)animated;

	// Animted the Sliding View out to the left
	-(void)showRightStaticView:(BOOL)animated;

创建和配置CHSlideController并将其添加到您的窗口/视图中

    DemoSlideControllerSubclass *slideController = [[DemoSlideControllerSubclass alloc] init];
	slideController.drawShadow = NO;
	slideController.allowEdgeSwipingForSlideingView = YES
	slideController.slideViewPaddingRight = 50.0;
	slideController.slideViewPaddingLeft = 50.0;

查看示例项目以获取更多配置示例

CocoaPods

CocoaPods是管理Objective-C项目中库依赖的最佳方式。了解更多信息请访问https://cocoapods.org.cn

将以下内容添加到您的Podfile中,以将CHSlideController添加到您的项目中
pod 'CHSlideController', '~> 2.4'

未来更新中的期待事项

  • 更多自定义选项

许可证

CHSlideController 使用 MIT 许可协议

版权所有 (c) 2013, Clemens Hammerl

在此特此授权任何获得此软件及其关联文档文件(以下称为“软件”)副本的个人免费使用软件,不受限制(包括但不限于使用、复制、修改、合并、发布、分发、再许可及/或出售软件副本的权利,并授予获得软件的个人这样做),但须遵守以下条件:

所有副本或软件的主要部分必须包含上述版权声明和本许可声明。

该软件按“原样”提供,不提供任何形式的质量保证,无论是明示的、隐含的还是法定的,包括但不限于适销性、特定目的适用性和非侵权性保证。在任何情况下,作者或版权所有者均不对因合同、侵权或其他原因产生的任何索赔、损失或其他责任负责,无论这些索赔是由于、源自还是与该软件或其使用或其他处理有关。