You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,31 @@ it, simply add the following line to your Podfile:
20
20
pod "LoadingViewController"
21
21
```
22
22
23
+
Currently it supporting UIViewControllers but not UITableViewController and UICollectionViewController.
24
+
25
+
## How to use
26
+
27
+
Subclass your controller from LoadingViewController. On the top of View of your controller put another UIView which will be content view. All your content should be on the top of Content view. Link *contentView* property with this newly created view.
28
+
29
+
```javascript
30
+
override func viewDidLoad() {
31
+
super.viewDidLoad()
32
+
33
+
// Do any additional setup after loading the view, typically from a nib.
34
+
35
+
delay(3.0) { [weak self] in
36
+
self?.setVisibleScreen(.Loading)
37
+
self?.delay(3, closure: { [weak self] in
38
+
self?.setVisibleScreen(.Content)
39
+
})
40
+
}
41
+
}
42
+
```
43
+
44
+
## TODO
45
+
* add support of UITableViewController and UICollectionViewController
0 commit comments