久久ER99热精品一区二区-久久精品99国产精品日本-久久精品免费一区二区三区-久久综合九色综合欧美狠狠

新聞中心

EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > iOS開(kāi)發(fā)常用的第三方類(lèi)庫(kù)

iOS開(kāi)發(fā)常用的第三方類(lèi)庫(kù)

作者: 時(shí)間:2016-10-08 來(lái)源:網(wǎng)絡(luò) 收藏

PullToRefresh 下拉刷新

GitHub:https://github.com/leah/PullToRefresh

PullToRefresh提供比EGOTableViewPullRefresh更加簡(jiǎn)單的使用方法,只要繼承自PullRefreshTableViewController,再實(shí)現(xiàn)refresh方法即可:

1
2
3
4
5
6
- (void)refresh {
// 加載數(shù)據(jù)
[self.tableView reloadData];// 重新載入U(xiǎn)ITableView
[self stopLoading];//停止動(dòng)畫(huà)
}

STableViewController 下拉刷新、上拉加載更多

GitHub:https://github.com/shiki/STableViewController

STableViewController比PullToRefresh多了一個(gè)上拉加載更多功能,使用上也差不多簡(jiǎn)單,需要繼承自STableViewController,再實(shí)現(xiàn)一些方法:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

關(guān)鍵詞:

評(píng)論


相關(guān)推薦

技術(shù)專(zhuān)區(qū)

      <strong id="5wp83"><button id="5wp83"></button></strong>