Latest 0.2.3
Homepage https://github.com/xtzPioneer/TXMenu
License MIT
Platforms ios 8.0, requires ARC
Authors

TXMenu 简介

这是一个可自定义主视图的菜单控制器,您可以将自定义视图添加到该菜单中来使用。

TXMenu

cocoapods集成

  • pod ‘TXMenu’, ‘~> 0.2.3’

    使用方法

  • 导入头文件 直接使用TXMenu…即可
  • (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor orangeColor];
    TXMenu menu=[[TXMenu alloc]initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, tRealLength(150)) number:4];
    menu.backgroundColor=[UIColor whiteColor];
    menu.delegate=self;
    menu.navigationBarIcons = @[@"喷油嘴清洗",@"温度",@"空间",@"材料"];
    menu.navigationBarTitles = @[@"200Cn喷嘴温度",@"60Cn热床温度",@"移动轴",@"耗材"];
    TXView0
    view0=[TXView0 new];
    view0.backgroundColor=[UIColor whiteColor];
    [email protected]"视图0";
    TXView1 view1=[TXView1 new];
    view1.backgroundColor=[UIColor whiteColor];
    [email protected]"视图1";
    TXView2
    view2=[TXView2 new];
    view2.backgroundColor=[UIColor whiteColor];
    [email protected]"视图2";
    TXView3 * view3=[TXView3 new];
    view3.backgroundColor=[UIColor whiteColor];
    [email protected]"视图3";
    [email protected][view0,view1,view2,view3];
    menu.navigationBarBackgroundColor=[UIColor grayColor];
    menu.navigationBarTitleFontOfSize=tRealFontSize(9);
    menu.navigationBarHeight=tRealLength(40);
    menu.navigationBarTitleFontOfColor=[UIColor whiteColor];
    self.menu=menu;
    }

Latest podspec

{
    "name": "TXMenu",
    "version": "0.2.3",
    "summary": "u81eau5b9au4e49u83dcu5355uff0cu5e76u4e14u53efu4ee5u63a7u5236u81eau5df1u5b9au4e49u7684u4efbu4f55u89c6u56feu3002",
    "description": "u81eau5b9au4e49u83dcu5355uff0cu5e76u4e14u53efu4ee5u63a7u5236u81eau5df1u5b9au4e49u7684u4efbu4f55u89c6u56feu3002u66f4u591au529fu80fdu7b49u5f85u4f60u7684u53d1u73b0u3002",
    "homepage": "https://github.com/xtzPioneer/TXMenu",
    "license": "MIT",
    "authors": {
        "zhangxiong": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/xtzPioneer/TXMenu.git",
        "tag": "0.2.3"
    },
    "source_files": "TXMenu/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This