Demo project updates

This commit is contained in:
Roman Efimov
2013-06-19 12:25:50 -05:00
parent b7da861f88
commit 4a21a73a1d
3 changed files with 5 additions and 1 deletions

View File

@@ -36,7 +36,8 @@
// Add table footer view
//
UIButton *loadMoreButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
[loadMoreButton setFrame:CGRectMake(40, 7, 240, 44)];
loadMoreButton.frame = CGRectMake(40, 7, 240, 44);
loadMoreButton.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
[loadMoreButton setTitle:@"Load more" forState:UIControlStateNormal];
[loadMoreButton addTarget:self action:@selector(loadMoreButtonPressed) forControlEvents:UIControlEventTouchUpInside];

View File

@@ -23,9 +23,11 @@
{
self = [super initWithFrame:frame];
if (self) {
self.autoresizingMask = UIViewAutoresizingFlexibleWidth;
UIView *backgroundView = [[UIView alloc] initWithFrame:self.bounds];
backgroundView.backgroundColor = [UIColor whiteColor];
backgroundView.alpha = 0.9;
backgroundView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
[self addSubview:backgroundView];
_userpicImageView = [[UIImageView alloc] initWithFrame:CGRectMake(7, 7, 30, 30)];

View File

@@ -19,6 +19,7 @@
- (void)cellDidLoad
{
_pictureView = [[UIImageView alloc] initWithFrame:CGRectMake(7, 0, 306, 306)];
_pictureView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
[self addSubview:_pictureView];
}