您的位置:首页 > 其它

杂(可能用到的零碎知识点)

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]);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: