Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will be necessary for page reuse once that is implemented.
- Loading branch information
Showing
21 changed files
with
268 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.DS_Store | ||
*xcuserdata/ | ||
*build/ | ||
*.mode1v3 | ||
*.pbxuser | ||
*.xcworkspace | ||
*.moved-aside/ | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// PEPageView.h | ||
// Paginator Example | ||
// | ||
// Created by Sam Soffes on 3/8/12. | ||
// Copyright (c) 2012 Synthetic. All rights reserved. | ||
// | ||
|
||
@interface PEPageView : SYPageView | ||
|
||
@property (nonatomic, strong, readonly) UILabel *textLabel; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// PEPageView.m | ||
// Paginator Example | ||
// | ||
// Created by Sam Soffes on 3/8/12. | ||
// Copyright (c) 2012 Synthetic. All rights reserved. | ||
// | ||
|
||
#import "PEPageView.h" | ||
|
||
@implementation PEPageView | ||
|
||
@synthesize textLabel = _textLabel; | ||
|
||
- (id)initWithReuseIdentifier:(NSString *)reuseIdentifier { | ||
if ((self = [super initWithReuseIdentifier:reuseIdentifier])) { | ||
self.backgroundColor = [UIColor colorWithWhite:0.2f alpha:1.0f]; | ||
|
||
_textLabel = [[UILabel alloc] initWithFrame:self.bounds]; | ||
_textLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; | ||
_textLabel.backgroundColor = [UIColor clearColor]; | ||
_textLabel.textAlignment = UITextAlignmentCenter; | ||
_textLabel.textColor = [UIColor whiteColor]; | ||
[self addSubview:_textLabel]; | ||
} | ||
return self; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.97 KB
(120%)
...eproj/project.xcworkspace/xcuserdata/samsoffes.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
SYPaginator.xcodeproj/project.xcworkspace/contents.xcworkspacedata
This file was deleted.
Oops, something went wrong.
Binary file removed
BIN
-9.73 KB
...eproj/project.xcworkspace/xcuserdata/samsoffes.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
58 changes: 0 additions & 58 deletions
58
SYPaginator.xcodeproj/xcuserdata/samsoffes.xcuserdatad/xcschemes/SYPaginator.xcscheme
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
SYPaginator.xcodeproj/xcuserdata/samsoffes.xcuserdatad/xcschemes/xcschememanagement.plist
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// | ||
// SYPageView.h | ||
// SYPaginator | ||
// | ||
// Created by Sam Soffes on 3/8/12. | ||
// Copyright (c) 2012 Synthetic. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface SYPageView : UIView | ||
|
||
@property (nonatomic, strong, readonly) NSString *reuseIdentifier; | ||
|
||
- (id)initWithReuseIdentifier:(NSString *)reuseIdentifier; | ||
- (void)prepareForReuse; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// SYPageView.m | ||
// SYPaginator | ||
// | ||
// Created by Sam Soffes on 3/8/12. | ||
// Copyright (c) 2012 Synthetic. All rights reserved. | ||
// | ||
|
||
#import "SYPageView.h" | ||
|
||
@interface SYPageView () | ||
@property (nonatomic, strong, readwrite) NSString *reuseIdentifier; | ||
@end | ||
|
||
@implementation SYPageView | ||
|
||
@synthesize reuseIdentifier = _reuseIdentifier; | ||
|
||
- (id)initWithReuseIdentifier:(NSString *)reuseIdentifier { | ||
if ((self = [super initWithFrame:CGRectZero])) { | ||
self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; | ||
self.reuseIdentifier = reuseIdentifier; | ||
} | ||
return self; | ||
} | ||
|
||
|
||
- (void)prepareForReuse { | ||
// Subclasses may override this | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// SYPaginatorScrollView.h | ||
// SYPaginator | ||
// | ||
// Created by Sam Soffes on 3/8/12. | ||
// Copyright (c) 2012 Synthetic. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface SYPaginatorScrollView : UIScrollView | ||
|
||
@property (nonatomic, unsafe_unretained) id<UIScrollViewDelegate> privateDelegate; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// SYPaginatorScrollView.m | ||
// SYPaginator | ||
// | ||
// Created by Sam Soffes on 3/8/12. | ||
// Copyright (c) 2012 Synthetic. All rights reserved. | ||
// | ||
|
||
#import "SYPaginatorScrollView.h" | ||
|
||
@implementation SYPaginatorScrollView | ||
|
||
- (void)setDelegate:(id<UIScrollViewDelegate>)delegate { | ||
return; | ||
} | ||
|
||
|
||
- (id<UIScrollViewDelegate>)privateDelegate { | ||
return [self delegate]; | ||
} | ||
|
||
|
||
- (void)setPrivateDelegate:(id<UIScrollViewDelegate>)privateDelegate { | ||
[super setDelegate:privateDelegate]; | ||
} | ||
|
||
@end |
Oops, something went wrong.