欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

IOS中UITableView和NavigationBar常用設(shè)置的示例分析

小編給大家分享一下IOS中UITableView和NavigationBar常用設(shè)置的示例分析,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!

創(chuàng)新互聯(lián)公司專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于成都做網(wǎng)站、成都網(wǎng)站設(shè)計(jì)、成都外貿(mào)網(wǎng)站建設(shè)、扎魯特旗網(wǎng)絡(luò)推廣、成都小程序開發(fā)、扎魯特旗網(wǎng)絡(luò)營銷、扎魯特旗企業(yè)策劃、扎魯特旗品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運(yùn)營等,從售前售中售后,我們都將竭誠為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);創(chuàng)新互聯(lián)公司為所有大學(xué)生創(chuàng)業(yè)者提供扎魯特旗建站搭建服務(wù),24小時(shí)服務(wù)熱線:028-86922220,官方網(wǎng)址:chinadenli.net

IOS UITableView和NavigationBar的常用設(shè)置詳解

TableView:

1.tableview常用基本設(shè)置

// 清除父類UIEdgeInsets 
self.tableView.contentInset = UIEdgeInsetsMake(0, 0, 0,0); 
//禁止?jié)L動(dòng) 
self.tableView.scrollEnabled = NO; 
// tableview頭部視圖設(shè)置 
self.tableView.tableHeaderView =一個(gè)UIView; 
//tableview尾部視圖設(shè)置,這樣用一個(gè)不占空間的UIView初始化可以清除尾部多余空格 
self.tableView.tableFooterView = [[UIView alloc]initWithFrame:CGRectZero]; 
//表格背景色 
self.tableView.backgroundColor = [UIColorgrayColor]; 
//取消垂直滾動(dòng)條 
self.tableView.showsVerticalScrollIndicator=NO; 
//設(shè)置表格背景圖片 
UIView *bgView= [[UIView alloc]initWithFrame:CGRectMake(0,20,SLApplicationW,SLApplicationH)]; 
UIImageView *bgImageView= [[UIImageView alloc]initWithFrame:CGRectMake(0,0,SLApplicationW,SLApplicationH)]; 
  [bgImageView setImage:[UIImageimageNamed:@"tree"]]; 
  [bgView addSubview:bgImageView]; 
self.tableView.backgroundView= bgView;

2.cell常用基本設(shè)置

//表格附件樣式,指示箭頭 
  
  cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator; 
//禁止點(diǎn)擊變色 
  
  cell.selectionStyle=UITableViewCellSelectionStyleNone;

3.cell分割線左側(cè)空白清除     

IOS中UITableView和NavigationBar常用設(shè)置的示例分析IOS中UITableView和NavigationBar常用設(shè)置的示例分析

//分割線清偏移 
  if ([cell respondsToSelector:@selector(setSeparatorInset:)]) { 
    [cellsetSeparatorInset:UIEdgeInsetsZero]; 
  }
//分割線清邊界(沒啥變化) 
  if ([cell respondsToSelector:@selector(setLayoutMargins:)]) { 
    [cellsetLayoutMargins:UIEdgeInsetsZero]; 
  }
//清除父邊界 
  if ([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]){ 
    [cellsetPreservesSuperviewLayoutMargins:NO]; 
  
  }

NavigationBar導(dǎo)航欄:

1.常用基本設(shè)置

self.title =@"標(biāo)題"; 
// 導(dǎo)航欄顏色 
self.navigationBar.barTintColor=[UIColor grayColor]; 
// 導(dǎo)航欄文字顏色 
self.navigationBar.tintColor=[UIColor whiteColor]; 
// 導(dǎo)航欄標(biāo)題顏色 
NSMutableDictionary*textAttrs= [NSMutableDictionary dictionary]; 
 textAttrs[NSForegroundColorAttributeName] =[UIColor whiteColor]; 
self.navigationBarsetTitleTextAttributes:textAttrs]; 
  
//導(dǎo)航欄按鈕1 
UIBarButtonItem*button1= [[UIBarButtonItem alloc] 
             initWithBarButtonSystemItem:UIBarButtonSystemItemAddtarget:selfaction:@selector(function1)]; 
//導(dǎo)航欄按鈕2 
UIBarButtonItem*button2= [[UIBarButtonItem alloc] 
              initWithBarButtonSystemItem:UIBarButtonSystemItemSearchtarget:selfaction:@selector(function2)]; 
//將按鈕添加到導(dǎo)航欄右側(cè)(可以添加多個(gè)) 
  
self.navigationItem.rightBarButtonItems=@[button1, button2];

2.系統(tǒng)自帶按鈕

枚舉定義及樣式解釋如下:

typedef NS_ENUM(NSInteger, UIBarButtonSystemItem) { 
  UIBarButtonSystemItemDone,   //Done英文字符 
  UIBarButtonSystemItemCancel,  //Cancel 
  UIBarButtonSystemItemEdit,   //Edit 
  UIBarButtonSystemItemSave,   //Save  
  UIBarButtonSystemItemAdd,    //圖標(biāo)1(加號(hào)圖標(biāo)?) 
  UIBarButtonSystemItemFlexibleSpace, //?空白 
  UIBarButtonSystemItemFixedSpace,   //?空白 
  UIBarButtonSystemItemCompose,    //圖標(biāo)2(寫字板上一支筆寫字的圖標(biāo)) 
  UIBarButtonSystemItemReply,     //圖標(biāo)3 
  UIBarButtonSystemItemAction,     //圖標(biāo)4 
  UIBarButtonSystemItemOrganize,    //圖標(biāo)5 
  UIBarButtonSystemItemBookmarks,   //<span >圖標(biāo)6</span> 
  UIBarButtonSystemItemSearch,     //<span >圖標(biāo)7</span> 
  UIBarButtonSystemItemRefresh,    //<span >圖標(biāo)8</span> 
  UIBarButtonSystemItemStop,      //圖標(biāo)9 
  UIBarButtonSystemItemCamera,     //圖標(biāo)10 
  UIBarButtonSystemItemTrash,     //圖標(biāo)11 
  UIBarButtonSystemItemPlay,      //圖標(biāo)12 
  UIBarButtonSystemItemPause,     //圖標(biāo)13 
  UIBarButtonSystemItemRewind,     //圖標(biāo)14 
  UIBarButtonSystemItemFastForward,  //圖標(biāo)15 
  UIBarButtonSystemItemUndo NS_ENUM_AVAILABLE_IOS(3_0),    //Redo 
  UIBarButtonSystemItemRedo NS_ENUM_AVAILABLE_IOS(3_0),    //Undo 
  UIBarButtonSystemItemPageCurl NS_ENUM_AVAILABLE_IOS(4_0),  //?空白 
};

以上是“IOS中UITableView和NavigationBar常用設(shè)置的示例分析”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!

分享題目:IOS中UITableView和NavigationBar常用設(shè)置的示例分析
當(dāng)前路徑:http://chinadenli.net/article46/iegshg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計(jì)公司、企業(yè)建站、品牌網(wǎng)站設(shè)計(jì)網(wǎng)站營銷、動(dòng)態(tài)網(wǎng)站、網(wǎng)站收錄

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

綿陽服務(wù)器托管
国产一区麻豆水好多高潮| 麻豆欧美精品国产综合久久| 青青操精品视频在线观看| 精品人妻一区二区四区| 亚洲熟女一区二区三四区| 成年男女午夜久久久精品| 麻豆果冻传媒一二三区| 激情亚洲一区国产精品久久| 亚洲精品中文字幕欧美| 成人国产激情福利久久| 亚洲国产四季欧美一区| 加勒比日本欧美在线观看| 欧美日韩精品久久第一页| 中文字幕精品一区二区三| 老富婆找帅哥按摩抠逼视频| 小草少妇视频免费看视频| 国产麻豆成人精品区在线观看| 亚洲天堂一区在线播放| 国产精品激情在线观看| 九九久久精品久久久精品| 亚洲另类欧美综合日韩精品| 国产一区二区三区草莓av| 夫妻性生活一级黄色录像| 中文字幕一区二区熟女| 成人亚洲国产精品一区不卡| 中字幕一区二区三区久久蜜桃| 亚洲香艳网久久五月婷婷| 久久机热频这里只精品| 日韩精品你懂的在线观看| 美日韩一区二区精品系列| 欧美成人久久久免费播放| 性欧美唯美尤物另类视频| 日韩欧美中文字幕人妻| 又色又爽又无遮挡的视频 | 亚洲国产日韩欧美三级| 亚洲综合香蕉在线视频| 欧美日韩国产午夜福利| 五月婷婷亚洲综合一区| 好吊日在线观看免费视频| 成人日韩视频中文字幕| 性感少妇无套内射在线视频|