Git Product home page Git Product logo

tabsdk.framework's Introduction

TABSDK.framework

使用方法

1、在项目中导入JXYTAB.framework

2、创建几个viewcontroller

3、在AppDelegate.m 添加头文件#import <JXYTAB/JXYTAB.h>

4、在AppDelegate.m 添加你创建viewcontroller的头文件

5、在didFinishLaunchingWithOptions:添加如下代码

-(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

self.window.backgroundColor = [UIColor whiteColor];

JXYTABViewController *tabvc=[[JXYTABViewController alloc] init];

/*
tabbar底部不带文字

[tabvc addVcWithPurefigure:[[oneViewController alloc] init]];

[tabvc addVcWithPurefigure:[[twoViewController alloc] init]];

*/


/*底部带文字*/

[tabvc AddVcWithTopText:[[oneViewController alloc] init] VC_Top_title:@"第一个控制器" titleSelected_NO_Color:0x6E6E6E titleSelected_YES_Color:0xD1271F titleFont:[UIFont systemFontOfSize:10]];

[tabvc AddVcWithTopText:[[twoViewController alloc] init] VC_Top_title:@"第二个控制器" titleSelected_NO_Color:0x6E6E6E titleSelected_YES_Color:0xD1271F titleFont:[UIFont systemFontOfSize:10]];

self.window.rootViewController =tabvc;

[self.window makeKeyAndVisible];

return YES;

}

6、在Assets.xcassets添加图片资源

图片名称等于视图的类名:

XXXXController(未选中状态)

XXXXController-2(选中状态)

YYYYViewController(未选中状态)

YYYYViewController-2(选中状态)

fanhui (返回按钮,样式自己选)

Image text Image text

tabsdk.framework's People

Contributors

kuitous avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.