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

UINavigationController当push的时候隐藏TabBar

[controller setHidesBottomBarWhenPushed:YES];app

设置状态栏白色

要在info.plist添加View controller-based status bar appearance值为NOide

[[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleLightContent animated:NO];spa

tableView取消cell中间的横线

_tableView.separatorStyle = UITableViewCellSeparatorStyleSingleLineEtched;
.net

使每个cell减小一像素

 _tableView.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 0, -1)];3d

cell右箭头

Cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;orm

键盘通知

键盘通知keyboard,获取键盘高度进行操做
blog

自定义tabbar

[self.tabBar.viewForFirstBaselineLayout addSubview:image];get

设置tabbar没有最上边的一条线

自定义tabbar

选中cell的样式

cell.selectionStyle = UITableViewCellSelectionStyleNone;//设置选中为空string

/*设置cell背景色*/
it

查看系统版本号

#import "sys/utsname.h"


    struct utsname systemInfo;

    uname(&systemInfo);

    NSLog(@"%@", [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]);

    NSLog(@"%@", [[UIDevice currentDevice] systemVersion]);

相关文章
相关标签/搜索