Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
30 lines (22 sloc) 0.696 kb
#import "PageView.h"
@implementation PageView
- (id)init
{
if ((self = [super init]))
{
self.opaque = YES;
self.backgroundColor = [UIColor colorWithRed:(CGFloat)arc4random() / 0xFFFFFFFF
green:(CGFloat)arc4random() / 0xFFFFFFFF
blue:(CGFloat)arc4random() / 0xFFFFFFFF
alpha:1.0];
self.textColor = [UIColor whiteColor];
self.textAlignment = UITextAlignmentCenter;
self.font = [UIFont boldSystemFontOfSize:36];
}
return self;
}
- (void)setPageIndex:(NSUInteger)newIndex
{
self.text = [NSString stringWithFormat:@"%lu", (unsigned long)newIndex];
}
@end
Jump to Line
Something went wrong with that request. Please try again.