iPhone开发札记【2011.11.02】
来源:互联网 发布:变体美术字设计软件 编辑:程序博客网 时间:2024/06/02 22:12
=》UITabbarController, 自定义UITabbar
1. 设置背景
UIImageView *backImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];backImage.image = [UIImage imageNamed:@"barTop.png"];[_tabController.tabBar insertSubview:backImage atIndex:0];_tabController.tabBar.opaque = YES;[backImage release];
2. 代码手动生成UITabbarController
UITabBarController *tabController = [[UITabBarController alloc] init];tabController.selectedIndex = 0;UIViewController *c1 = [[UIViewController alloc] init];c1.tabBarItem.image = [UIImage imageNamed:@"1.png"];UIViewController *c2 = [[UIViewController alloc] init];c1.tabBarItem.image = [UIImage imageNamed:@"2.png"];NSArray *arr = [NAArray arrayWithObjects:c1, c2, nil];tabController.viewControllers = arr;//设置每个标签的controller
- iPhone开发札记【2011.11.02】
- iPhone开发札记【2011.11.01】
- iPhone开发札记【2011.11.03】
- iPhone开发札记【2011.11.04】
- iPhone开发札记【2011.11.05】
- iPhone开发札记【2011.11.07】
- iPhone开发札记【2011.11.08】
- iPhone开发札记【2011.11.15】
- iPhone开发札记【2011.11.16】
- iPhone/iPad开发札记 2012/02/22
- iPhone/iPad开发札记 2012/02/23
- iPhone/iPad开发札记 2012/02/24
- iPhone/iPad开发札记 2012/02/26
- iPhone/iPad开发札记 2012/02/27
- iPhone 开发环境搭建札记
- iPhone开发札记【2011.10.27】
- iPhone开发札记【2011.10.28】
- iphone开发之UITableView 札记
- multimap排序
- hdu_1170_Balloon Comes!_水之
- GoogleMaps出现问题记录
- v$sql——存储的是具体的SQL语句和执行计划相关信息!
- 日赚60自动赚钱系统
- iPhone开发札记【2011.11.02】
- C# 控制文本并发访问
- 常用的CSS样式
- 解决WIN7下VC6“打开”和“添加文件至工作区”崩溃问题
- hdu_2000_ASCII码排序_3行就完了
- JavaEE企业级应用开发设计知识范畴
- 测试开发中的硬道理(《软测之魂》读后感)
- LINUX的前世今生【信息图】
- 模式窗口showModalDialog的用法总结