0
我添加了一個RefreshControl來查看長標題文本,但是這個標題被隱藏了一些詞。Swift如何在2行中添加UIRefreshControl的標題文本
override func viewDidLoad()
{
super.viewDidLoad()
self.refreshControl = UIRefreshControl()
self.refreshControl.attributedTitle = NSAttributedString(string: "Last Updated at Some time...Pull to refersh your content")
self.refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
self.tableView.addSubview(refreshControl)
}
它是如何初始化,即已經'UIRefreshControl'一幀? – 2015-01-21 10:45:31