Created
February 1, 2009 01:24
-
-
Save sbrocket/55740 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| - (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseIdentifier { | |
| if ((self = [super initWithFrame:frame reuseIdentifier:reuseIdentifier])) { | |
| backgroundImageView = [[UIImageView alloc] initWithImage:nil]; | |
| backgroundImageView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; | |
| self.backgroundView = backgroundImageView; | |
| [backgroundImageView release]; | |
| textLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 20)]; | |
| textLabel.center = CGPointMake(160, self.contentView.center.y); | |
| textLabel.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin; | |
| textLabel.text = @"Twenty Five More..."; | |
| textLabel.textAlignment = UITextAlignmentCenter; | |
| textLabel.textColor = [UIColor whiteColor]; | |
| textLabel.backgroundColor = [UIColor clearColor]; | |
| [self.contentView addSubview:textLabel]; | |
| [textLabel release]; | |
| UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite]; | |
| [spinner startAnimating]; | |
| self.accessoryView = spinner; | |
| [spinner release]; | |
| } | |
| return self; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment