[英]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.