簡體   English   中英

如何在Swift中初始化UIView?

[英]How to initialize UIView in Swift?

我只想像目標C中一樣快速為表腳初始化UIView

_searchTableView.tableFooterView =[[UIView alloc] init];

刪除tableview分隔線該怎么做?

哦,最后結束。

_searchTableView.tableFooterView = UIView()

帶框架

 _searchTableView.tableFooterView  = UIView (frame: CGRectMake(0, 0, 0, 0))

您可以通過以下方式進行initialize

1)無框

self.searchTableView.tableFooterView = UIView () 

2)帶框架。

self.searchTableView.tableFooterView = UIView (frame: CGRectMake(10, 10, 10, 10))

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM