/
tips.txt
46 lines (37 loc) · 1.32 KB
/
tips.txt
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
* Intro * (30s)
- If you have used brewster...
* Why SMGridView? * (1:00 - 1:30)
- Custom
- We tried other open source libraries, but none of them satisfied us, performance and functionality were not optimal.
- Then we tried UITableView
- UITableView
- You need to add subviews inside a cell (annoying)
- Is only rows (not suitable for delete, move...)
- Is only vertical
- UICollectionView
- This was not available when we started developing.
- Only ios6
- It is more complex to implement for a simple grid.
* Features * (1:30)
100 items
90 size
3 sections
Vertical
No loader
No pagination
Sort wait time 0
Headers (non sticky)
- Vertical Horizontal
- UITableViewCell not subview: use your own views
- Sections: like UITableView
- Pagination: Reverse ordering. Page changes notifier.
- Empty View: just set 0 items.
* How to use it? *
- Similar to UITableView.
- 3 required in dataSource
- number of items in a section
- size of each item, to calculate positions and the views and contentSize of the scroll area
- the view: views are going to be asked when needed, and you should REUSE (dequeue)
- ReloadData: is calling your dataSource methods to learn about the positions of the views
- Reuse: you can call with class (as we don't use a specific view type, we don't have ID's like UITableViews)
* Next Steps *