雜(可能用到的零碎知識點)

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]);

相關文章
相關標籤/搜索