Skip to content

Commit 9291372

Browse files
committed
Show status bar in examples
1 parent f4925a1 commit 9291372

17 files changed

Lines changed: 0 additions & 83 deletions

File tree

examples/ASCollectionView/Sample/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ - (void)viewDidLoad
8484
#endif
8585
}
8686

87-
- (BOOL)prefersStatusBarHidden
88-
{
89-
return YES;
90-
}
91-
9287
- (void)reloadTapped
9388
{
9489
[self.collectionView reloadData];

examples/CatDealsCollectionView/Sample/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,6 @@ - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIVi
146146
[_collectionView.collectionViewLayout invalidateLayout];
147147
}
148148

149-
- (BOOL)prefersStatusBarHidden
150-
{
151-
return YES;
152-
}
153-
154149
- (void)reloadTapped
155150
{
156151
[_collectionView reloadData];

examples/CollectionViewWithViewControllerCells/Sample/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ - (void)dealloc
7979
_collectionView.asyncDelegate = nil;
8080
}
8181

82-
- (BOOL)prefersStatusBarHidden
83-
{
84-
return YES;
85-
}
86-
8782
- (void)reloadTapped
8883
{
8984
[_collectionView reloadData];

examples/CustomCollectionView/Sample/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ - (void)viewWillLayoutSubviews
8282
_collectionView.frame = self.view.bounds;
8383
}
8484

85-
- (BOOL)prefersStatusBarHidden
86-
{
87-
return YES;
88-
}
89-
9085
- (void)reloadTapped
9186
{
9287
[_collectionView reloadData];

examples/EditableText/Sample/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ - (void)viewWillLayoutSubviews
6363
_textNode.frame = CGRectMake(0, 20, self.view.bounds.size.width, (self.view.bounds.size.height / 2) - 40);
6464
}
6565

66-
- (BOOL)prefersStatusBarHidden
67-
{
68-
return YES;
69-
}
70-
7166
- (void)tap:(UITapGestureRecognizer *)sender
7267
{
7368
// dismiss the keyboard when we tap outside the text field

examples/HorizontalWithinVerticalScrolling/Sample/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ - (void)viewWillLayoutSubviews
6262
_tableView.frame = self.view.bounds;
6363
}
6464

65-
- (BOOL)prefersStatusBarHidden
66-
{
67-
return YES;
68-
}
69-
7065
#pragma mark -
7166
#pragma mark ASTableView.
7267

examples/Kittens/Sample/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,6 @@ - (void)viewWillLayoutSubviews
101101
_tableView.frame = self.view.bounds;
102102
}
103103

104-
- (BOOL)prefersStatusBarHidden
105-
{
106-
return YES;
107-
}
108-
109104
- (void)toggleEditingMode
110105
{
111106
[_tableView setEditing:!_tableView.editing animated:YES];

examples/Multiplex/Sample/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,4 @@ - (void)viewWillAppear:(BOOL)animated
3939
[super viewWillAppear:animated];
4040
}
4141

42-
- (BOOL)prefersStatusBarHidden
43-
{
44-
return YES;
45-
}
46-
4742
@end

examples/SocialAppLayout/Sample/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ - (void)viewDidLoad {
5757
[self.view addSubview:self.tableView];
5858
}
5959

60-
- (BOOL)prefersStatusBarHidden
61-
{
62-
return YES;
63-
}
64-
6560
- (void)createSocialAppDataSource {
6661

6762
_socialAppDataSource = [[NSMutableArray alloc] init];

examples/Swift/Sample/ViewController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ final class ViewController: ASViewController, ASTableDataSource, ASTableDelegate
4141
fatalError("storyboards are incompatible with truth and beauty")
4242
}
4343

44-
override func prefersStatusBarHidden() -> Bool {
45-
return true
46-
}
47-
4844
// MARK: ASTableView data source and delegate.
4945

5046
func tableView(tableView: ASTableView, nodeForRowAtIndexPath indexPath: NSIndexPath) -> ASCellNode {

0 commit comments

Comments
 (0)