iPhone开发 自定义uitabbar
来源:未知 责任编辑:智问网络 发表时间:2013-08-28 11:56 点击:次
1.换颜色
CGRect frame = CGRectMake(0, 0, 320, 47);
UIView *v = [[UIView alloc] initWithFrame:frame];
UIColor *c = [[UIColoralloc] initWithRed:0.4green:0.7blue:0.3alpha:1.0];
v.backgroundColor = c;
[tabBarController.tabBarinsertSubview:v atIndex:0];
2.换图片
UIImageView* image = [[UIImageViewalloc] initWithImage:[UIImageimageNamed:@"button.png"]];
image.frame = CGRectMake(0, 0, 320,49);
[tabBarController.tabBarinsertSubview:image atIndex:0];
摘自 凡娃软件
相关新闻>>
- 发表评论
-
- 最新评论 进入详细评论页>>









![[iPhone中级]iPhone团购信息客户端的开发 (二)](/uploads/allimg/131022/200H11235-0-lp.png)
