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) initWithHeader:(NSString*) header { | |
if (self = [super initWithFrame:CGRectMake(0.0, 0.0, 320.0, 40.0)]) { | |
CGSize stringBoundingBox = [header sizeWithFont:[UIFont boldSystemFontOfSize:17]]; | |
[self setBackgroundColor:[UIColor groupTableViewBackgroundColor]]; | |
self.activityIndicator = [[UIActivityIndicatorView alloc] | |
initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray]; | |
CGRect frame = [self.activityIndicator frame]; | |
frame.origin.x = stringBoundingBox.width + 30.0; | |
frame.origin.y = 17.0; |