杂(可能用到的零碎知识点)
2016-02-23 00:00
281 查看
UINavigationController当push的时候隐藏TabBar
[controller setHidesBottomBarWhenPushed:YES];设置状态栏白色
要在info.plist添加View controller-based status bar appearance值为NO[[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleLightContent animated:NO];
tableView取消cell中间的横线
_tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLineEtched;使每一个cell减少一像素
_tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, -1)];cell右箭头
Cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;键盘通知
键盘通知keyboard,获取键盘高度进行操作自定义tabbar
[self.tabBar.viewForFirstBaselineLayout addSubview:image];设置tabbar没有最上边的一条线
自定义tabbar
选中cell的样式
cell.selectionStyle = UITableViewCellSelectionStyleNone;//设置选中为空/*设置cell背景色*/
查看系统版本号
#import "sys/utsname.h"struct utsname systemInfo;
uname(&systemInfo);
NSLog(@"%@", [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]);
NSLog(@"%@", [[UIDevice currentDevice] systemVersion]);
相关文章推荐
- django搭建微信公众号后台
- 17款最佳的代码审查工具
- 天下数据解析VPS空间主机的优劣势
- Html5中Select如何设定长度
- springmvc 拦截器
- springmvc 异常处理
- springmvc @ResponseStaus 返回异常信息
- spring DefaultHandlerExceptionResolver
- 后台的商品列表显示商品缩略图
- 使用Spring MVC统一异常处理实战
- IOS 开发 证书显示 此证书签发者无效 解决办法
- iOS Provisioning Profile(Certificate)与Code Signing
- python登陆接口----运维开发初学
- hadoop datajoin例子
- linux下查看已经安装的jdk 并卸载jdk
- linux磁盘空间查看命令(du,df)剩余空间查看详解
- ios app证书申请基本流程
- app 用户验证管理
- 我的程序员生涯(一)
- Coursera ML 机器学习