zoukankan      html  css  js  c++  java
  • 《找地儿》

    - (void)viewDidLoad {
    
        [super viewDidLoad];
    
     
    
        tabBar = [[UITabBarController alloc]init];
    
        tabBar.tabBar.backgroundImage = [UIImage imageNamed:@"标题栏背景.png"];
    
        [tabBar.tabBar setSelectionIndicatorImage:[UIImage imageNamed:@"标题栏选中.png"]];
    
        [tabBar.tabBar setTintColor:[UIColor yellowColor]];
    
         
    
        OneViewController *ontVie = [[OneViewController alloc]initWithNibName:@"OneViewController" bundle:nil];
    
        twoViewController *twoV=[[twoViewController alloc]initWithNibName:@"twoViewController" bundle:nil];
    
        threeViewController *threeV = [[threeViewController alloc]initWithNibName:@"threeViewController" bundle:nil];
    
        fourViewController *fourV = [[fourViewController alloc]initWithNibName:@"fourViewController" bundle:nil];
    
     
    
        ontVie.tabBarItem.image = [UIImage imageNamed:@"1.png"];
    
        twoV.tabBarItem.image = [UIImage imageNamed:@"2.png"];
    
        threeV.tabBarItem.image = [UIImage imageNamed:@"3.png"];
    
        fourV.tabBarItem.image = [UIImage imageNamed:@"4.png"];
    
        
    
        ontVie.tabBarItem.title = @"我的收藏";
    
        twoV.tabBarItem.title  = @"自选位置";
    
        threeV.tabBarItem.title = @"当前位置";
    
        fourV.tabBarItem.title = @"更多";
    
        
    
        tabBar.viewControllers = @[ontVie,twoV,threeV,fourV];
    
    }
    
    - (IBAction)ButtonOne:(id)sender {
    
        tabBar.selectedIndex = 0;
    
        [self presentViewController:tabBar animated:YES completion:nil];
    
    }
    
     
    
    - (IBAction)buttonTwo:(id)sender {
    
        tabBar.selectedIndex = 1;
    
        [self presentViewController:tabBar animated:YES completion:nil];
    
    }
    
    - (IBAction)buttonThree:(id)sender {
    
        tabBar.selectedIndex = 2;
    
        [self presentViewController:tabBar animated:YES completion:nil];
    
    }
    
    - (IBAction)setBTN:(id)sender {
    
        tabBar.selectedIndex =3;
    
        [self presentViewController:tabBar animated:YES completion:nil];
    
    }
  • 相关阅读:
    用sp_change_users_login消除Sql Server的孤立用户
    数据库连接字符串大全
    系统登录的设计与研究
    DB2常用命令大全(转)
    哈希表(HashTable)探究(转)
    转: C#实现的18位身份证格式验证算法
    通过SQLNET.ora文件限制Ip地址访问(转)
    AS/400(iSeries)
    使用Asp.Net构建安全网站
    DB2备份命名(转)
  • 原文地址:https://www.cnblogs.com/liuyingjie/p/5028054.html
Copyright © 2011-2022 走看看