您的位置:首页 > 移动开发 > IOS开发

iOS开发笔记

2015-12-04 14:02 495 查看
开发做了很久了,总要留下些记忆。 ——致曾经的我

1.//获取storyboard、xib、plist数组

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];

HeaderView *headerView = [[[NSBundle mainBundle] loadNibNamed:@"HeaderView" owner:nil options:nil] lastObject];

NSString *path = [[NSBundle mainBundle] pathForResource:@"tgs.plist" ofType:nil];

NSMutableArray *dictArray = [NSMutableArray arrayWithContentsOfFile:path];

2.tabBar

2.1//tabBar上的图片不经渲染

childVC.tabBarItem.selectedImage = [[UIImage imageNamed:selectedImageName] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];

2.2.//tabBarController添加子控制器

[self addChildViewController:nav];

3.iOS开发一些参数
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: