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