Skip to content

Commit ba5669e

Browse files
committed
Fix #13: scrollViewForParallexController misspelled.
1 parent 4ae0d17 commit ba5669e

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

QMBParallaxScrollViewController/QMBParallaxScrollViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ typedef NS_ENUM(NSUInteger, QMBParallaxGesture) {
2424

2525
@protocol QMBParallaxScrollViewHolder <NSObject>
2626

27-
- (UIScrollView *) scrollViewForParallexController;
27+
- (UIScrollView *) scrollViewForParallaxController;
2828

2929
@end
3030

Sample/QMBParallaxScrollView-Sample/SampleScrollViewController.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ @interface SampleScrollViewController (){
1717
@implementation SampleScrollViewController
1818

1919
- (void)awakeFromNib{
20-
21-
20+
21+
2222
}
2323

2424

2525
- (void)viewDidLoad
2626
{
2727
[super viewDidLoad];
28-
29-
28+
29+
3030
}
3131

3232
- (void)viewDidAppear:(BOOL)animated{
3333
[super viewDidAppear:animated];
34-
34+
3535
}
3636

3737
- (void)didReceiveMemoryWarning
@@ -47,7 +47,7 @@ - (void)dealloc{
4747

4848
#pragma mark - QMBParallaxScrollViewHolder
4949

50-
- (UIScrollView *)scrollViewForParallexController{
50+
- (UIScrollView *)scrollViewForParallaxController{
5151

5252
return self.scrollView;
5353
}

Sample/QMBParallaxScrollView-Sample/SampleTableViewController.m

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ @implementation SampleTableViewController
2121
- (void)viewDidLoad
2222
{
2323
[super viewDidLoad];
24-
24+
2525
self.scrollView.translatesAutoresizingMaskIntoConstraints = NO;
2626
self.tableView.translatesAutoresizingMaskIntoConstraints = NO;
2727

2828
_data = @[@[@{@"name":@"Map Sample"}],@[@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"},@{@"name":@"Gallery Sample"}]];
29-
30-
29+
30+
3131
[self setNeedsStatusBarAppearanceUpdate];
32-
32+
3333
[self.tableView reloadData];
3434
}
3535

@@ -59,9 +59,9 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
5959
{
6060
static NSString *CellIdentifier = @"Cell";
6161
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
62-
62+
6363
[cell.textLabel setText:[[[_data objectAtIndex:indexPath.section] objectAtIndex:indexPath.row] objectForKey:@"name"]];
64-
64+
6565
return cell;
6666
}
6767

@@ -70,17 +70,17 @@ - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInte
7070
}
7171

7272
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
73-
73+
7474
UIViewController *controller;
7575
if (indexPath.section == 0){
7676
controller = [self.storyboard instantiateViewControllerWithIdentifier:@"ParallaxMapViewController"];
77-
77+
7878
}else {
7979
controller = [self.storyboard instantiateViewControllerWithIdentifier:@"ParallaxPhotoViewController"];
8080
}
81-
81+
8282
[self presentViewController:controller animated:YES completion:nil];
83-
83+
8484
}
8585

8686
/*
@@ -99,10 +99,10 @@ - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEd
9999
if (editingStyle == UITableViewCellEditingStyleDelete) {
100100
// Delete the row from the data source
101101
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
102-
}
102+
}
103103
else if (editingStyle == UITableViewCellEditingStyleInsert) {
104104
// Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
105-
}
105+
}
106106
}
107107
*/
108108

@@ -134,7 +134,7 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
134134
135135
*/
136136

137-
- (UIScrollView *)scrollViewForParallexController{
137+
- (UIScrollView *)scrollViewForParallaxController{
138138
return self.tableView;
139139
}
140140

0 commit comments

Comments
 (0)