手機版 | wap版 | 網站主頁 | HOME | 3G網頁
<button id="bqbyl"><acronym id="bqbyl"></acronym></button>

<dd id="bqbyl"></dd>
<button id="bqbyl"></button>
      1. <progress id="bqbyl"></progress>
        <tbody id="bqbyl"><track id="bqbyl"></track></tbody>
        <em id="bqbyl"><tr id="bqbyl"></tr></em>

        HCPushSettingViewController

        [複製鏈接]
        來自: shengpeng0225 分類: iOS精品源碼 上傳時間: 2020-3-17 12:16:55
        Tag:

        項目介紹:

        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 'http://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

        相關源碼推薦:

        我來說兩句
        所有評論(7)
        A7472 2020-3-20 11:43:11
        好好 學習了 確實不錯
        回復
        這是個逗比 2020-3-20 11:43:22
        好好 學習了 確實不錯
        回復
        inta加加 2020-3-20 11:43:55
        感謝分享,code4app有你更精彩
        回復
        亂世佳人520 2020-3-20 11:44:11
        好好 學習了 確實不錯
        回復
        Rf2698 2020-3-20 11:45:07
        感謝大神分享,必須頂!
        回復
        Yf8546 2020-3-20 11:45:16
        感謝分享,樓主V5~
        回復
        xiao66guo 2020-3-20 13:03:23
        很給力,Code4App有你更精彩!
        回復
        166 0 0
        聯繫我們
        首頁/微信公眾賬號投稿

        帖子代碼編輯/版權問題

        QQ:435399051,742864542

        如何獲得代碼達人稱號?

        代碼貢獻英雄榜
        用戶名 下載數
        通過郵件訂閱最新 Code4App 信息
        上一條 /4 下一條

        廣告投放| 台湾互聯網違法和不良信息舉報中心|中國互聯網舉報中心|Github|申請友鏈|手機版|Code4App ( 粵ICP備15117877號-1 )