UITabBarController 升級定製,skycontroller升級

來源:互聯網
上載者:User

UITabBarController 升級定製,skycontroller升級
UITabBarController 定製

 

特點

 

用法

1.準備工作:

  • 加入你的相關圖片,放入了Assets.xcassets;
  • 匯入Categroy檔案夾(這個裡面的檔案,在這裡不詳細說明了,有疑問請看http://www.cnblogs.com/makingitbest/p/5789355.html);
  • 匯入MBProgressHud檔案夾(這裡面的檔案:MBProgressHUD.h/.m是第三方借鑒,MBProgressHUD+Convenience.h /.m是自己封裝,會詳細說明);
  • 匯入GCD檔案(這裡面有九個檔案,個人的理解用法,參考:http://www.cnblogs.com/makingitbest/p/5733748.html);

2.建立CustomNavigationController 繼承 UINavigationController

3.建立CustomViewController 繼承 UIViewController;

4.建立NormalContentViewController 繼承 CustomViewController;

5.建立NormalTitleViewController 繼承 NormalContentViewController;

6.其他ViewController繼承CustomViewController,不過這個繼承後來還會改的.方法看下面的細節4.

 

源碼

github:https://github.com/makingitbest/UITabBarController-custom1

 

細節

1.自己定製導覽列控制器,為了主動控制它的顯示或者隱藏.

 

2.架構的搭建,與起初沒什麼區別,主要的區別就是將這裡可以主動隱藏導覽列.

 

3.定製每一個viewController,需要做的有好幾步:

 

下面詳細講解:

(1)最底層的CustomViewController

 

(2)中間劃分地區的那層,載入效果.

 

(3)最後一級頁面,細緻的定製我們的導覽列.

 

4.更改繼承.

 

 5.處理添加手勢後的一個bug,手勢添加之後,可以滑動頁面返回上一級頁面.

 

6.對HUD的處理

 

7.載入效果的顯示

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.