歡迎光臨
我們一直在努力

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)

評論 搶沙發

  • 昵稱 (必填)
  • 郵箱 (必填)
  • 網址
色情影院 日本电影