欢迎光临
我们一直在努力

HCPushSettingViewController

容器云强势上线!快速搭建集群,上万Linux镜像随意使用

HCPushSettingViewController

项目介绍:

HCPushSettingViewController

language

Version

Platform

用于项目使用的方便的左侧或者右侧的弹出视图,自定义ViewController的逻辑独立

效果展示:

CocoaPods


pod 'HCPushSettingViewController'

问题处理

1. [!] Unable to find a specification for HCPushSettingViewController

调用pod repo update更新pod库

2. [!] CDN: trunk Repo update failed

podfile文件中指定source源为master 


source 'https://github.com/CocoaPods/Specs.git'

Requirements

 – iOS 8.0 or higher

 – ARC

 – Xcode 8.0 or higher

Usage

1. 创建一个视图(你需要显示的内容)


HCTestTableViewController *tablevc = [[HCTestTableViewController alloc] init];

2. 创建HCPushSettingViewController,并将其关联,然后使用present方法推出


HCPushSettingViewController *myvc = [HCPushSettingViewController settingControllerWithContentController:tablevc];

myvc.alignment = HCBaseSettingAlignmentLeft;

[self presentViewController:myvc animated:YES completion:nil];

3. 配置窗口大小以及各个参数


//设置视图方向 - 左侧显示

myvc.alignment = HCBaseSettingAlignmentLeft;

//内容大小为 300x500 MAXFLOAT表示铺满

myvc.hcContentSize = CGSizeMake(300, 500);

//设置边距缩进

myvc.contentInset = UIEdgeInsetsMake(10, 0, 10, 0);

//设置背景色

myvc.backgroundColor = [UIColor colorWithRed:26/255.f green:26/255.f blue:26/255.f alpha:0.5];

//打开跳转动画 - 不打开则界面直接显示

myvc.isTransitionAnimate = YES;

//点击背景隐藏手势启用

myvc.backgoundTapDismissEnable = YES

4. 更多查看头文件HCBaseSettingViewController.h


///Content view background Color

@property (nonatomic, strong) UIColor *hcContentViewBackgroundColor;

///hcContentView`s size, default is {300,MAXFLOAT},MAXFLOAT means will fill screen height

@property (nonatomic, assign) CGSize hcContentSize;

///Content EdgeInset ,Only Top and Bottom value is validate,left and right will be ignored. Default is UIEdgeInsetsZero

@property (nonatomic, assign) UIEdgeInsets contentInset;

///The final view postion,default is Right

@property (nonatomic, assign) HCBaseSettingAlignment alignment;

///Transition is animate,default is YES

@property (nonatomic, assign) BOOL isTransitionAnimate;

///If backgroundView not set,the value will effect backgroundView`s color

@property (nonatomic, strong) UIColor *backgroundColor;

///backgroundView

@property (nonatomic, strong) UIView *backgroundView;

///Tag backgoundView will cause ViewController dismiss

@property (nonatomic, assign) BOOL backgoundTapDismissEnable;

///dismiss controller completed block

@property (nonatomic, copy) void (^dismissComplete)(void);

Contact

如果请问题,请联系我,或者提交bug

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » HCPushSettingViewController
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址