Quickly create a mainstream iOS UI framework

Source: Internet
Author: User

This framework applies to apps that use Navigationcontroller+uitabbarcontroller

Frame Qlsnavtab, GitHub address: Https://github.com/qianlishun/QLSNavTab

Click here to download directly: Download ZIP

:

Brief introduction

-------Ready to work-------

Set a controller as the primary controller in Appdelegate, such as Maincontroller

-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions {     = [[UIWindow alloc]initwithframe:[uiscreen mainscreen].bounds];     *MAINVC = [[Maincontroller alloc]init];     // setting up the root controller    Self.window.rootViewController = MAINVC;     // set as primary controller and visible     [Self.window makekeyandvisible];     return YES;}

In the host controller

        //Set nav background colorSelf.navigationbackgroundcolor = [Uicolor colorwithred:arc4random_uniform ( the)/255.0Green:arc4random_uniform ( the)/255.0Blue:arc4random_uniform ( the)/255.0Alpha1.0]; Self.childcontrollerandiconarr= @[     /************ First Controller configuration information *********************/@{Vc_viewcontroller: [[Onecontroller Alloc]init],//Controller ObjectNormal_icon:@"icon_classtable",//icon name for normal stateSelected_icon:@"icon_classtable_selected",//icon Name of the selected stateTITLE:@"Table"                                 //title of Nav and tab        },     /************ Second controller configuration information *********************/@{Vc_viewcontroller: [[Twocontroller Alloc]init], Normal_icon:@"Icon_me", Selected_icon:@"icon_me_selected", TITLE:@"Contacts"        },
@{ /*If you use storyboard here, you need to set Storyboardid Storyboardid with the Vc_storyboard value for storyboard here as three */Vc_storyboard:@"three", Normal_icon:@"Icon_discover", Selected_icon:@"icon_discover_selected", TITLE:@"found" }, ];

Quickly create a mainstream iOS UI framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.