UITabBar 使用
来源:互联网 发布:安特托孔波数据 编辑:程序博客网 时间:2024/06/05 16:23
- UITabBar* tabBar = [[UITabBar alloc] initWithFrame:CGRectMake(40,0.0,240,70)];
- [tabBar setBackgroundImage:[UIImage imageNamed:@"titlebarbg.png"]];
- UITabBarItem * tabBarItem1 = [[UITabBarItem alloc] initWithTitle:@"人数" image:nil tag:0];
- UITabBarItem * tabBarItem2 = [[UITabBarItem alloc] initWithTitle:@"人均" image:nil tag:1];
- UITabBarItem * tabBarItem3 = [[UITabBarItem alloc] initWithTitle:@"距离" image:nil tag:2];
- UITabBarItem * tabBarItem4 = [[UITabBarItem alloc] initWithTitle:@"好评" image:nil tag:3];
- NSArray *tabBarItemArray = [[NSArray alloc] initWithObjects: tabBarItem1, tabBarItem2, tabBarItem3, tabBarItem4,nil];
- [tabBar setItems: tabBarItemArray];
- tabBar.delegate =self;
- - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
- {
- NSLog(@"itemClick: %d",item.tag);
- }
@interface ViewController : UIViewController<UITabBarDelegate>
- UITabBar 使用
- UITabBar的简单使用
- UITabBar使用详解
- UITabBar使用小结
- UITabBar 的使用
- UITabBar
- UITabBar
- UITabBar
- UITabbar
- UITabBar
- UITabBar
- UITabBar
- UITabBar
- UITabBar
- UITabBar
- UITabBar
- UITabBar
- iOS之UITabBar的使用
- 使用sqlite3操作
- 父类和子类之间的转换问题
- ssh免输入密码登录
- RTMP/RTP/RTSP/RTCP的区别
- 常见的产品需求获取来源
- UITabBar 使用
- TypedArray和obtainStyledAttributes使用
- 博客1
- HOOK NtCreateSection
- maven mvn Execution default-resources of goal org.apache.maven.plugins:maven-resources-plugin: 2.5
- 常用的Regex工具类
- Android应用中使用及实现系统“分享”接口
- 观察者模式
- C#炫彩界面库开发---第一个C#程序