Skip to content

Commit

Permalink
Update label positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Apr 16, 2012
1 parent bb8e5e9 commit aa17e00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SSSimplePullToRefreshContentView.m
Expand Up @@ -20,15 +20,15 @@ - (id)initWithFrame:(CGRect)frame {
if ((self = [super initWithFrame:frame])) {
CGFloat width = self.bounds.size.width;

_statusLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 10.0f, width, 20.0f)];
_statusLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 14.0f, width, 20.0f)];
_statusLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
_statusLabel.font = [UIFont boldSystemFontOfSize:14.0f];
_statusLabel.textColor = [UIColor blackColor];
_statusLabel.backgroundColor = [UIColor clearColor];
_statusLabel.textAlignment = UITextAlignmentCenter;
[self addSubview:_statusLabel];

_lastUpdatedAtLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 35.0f, width, 20.0f)];
_lastUpdatedAtLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 34.0f, width, 20.0f)];
_lastUpdatedAtLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
_lastUpdatedAtLabel.font = [UIFont systemFontOfSize:12.0f];
_lastUpdatedAtLabel.textColor = [UIColor lightGrayColor];
Expand All @@ -37,7 +37,7 @@ - (id)initWithFrame:(CGRect)frame {
[self addSubview:_lastUpdatedAtLabel];

_activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
_activityIndicatorView.frame = CGRectMake(30.0f, 30.0f, 20.0f, 20.0f);
_activityIndicatorView.frame = CGRectMake(30.0f, 25.0f, 20.0f, 20.0f);
[self addSubview:_activityIndicatorView];
}
return self;
Expand Down

0 comments on commit aa17e00

Please sign in to comment.