mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-04-27 22:41:12 +08:00
Demo project updates
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
@@ -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)];
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
- (void)cellDidLoad
|
||||
{
|
||||
_pictureView = [[UIImageView alloc] initWithFrame:CGRectMake(7, 0, 306, 306)];
|
||||
_pictureView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin;
|
||||
[self addSubview:_pictureView];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user