addSubview: leftTop始终在最前面,还有leftTop每一次都会创建,并没有重用
Opened this issue · 0 comments
-
(void)viewDidLoad {
[super viewDidLoad];
self.edgesForExtendedLayout = UIRectEdgeNone;
self.view.autoresizingMask = UIViewAutoresizingNone;
FormScrollView *table = [[FormScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height-64)];
table.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
table.fDelegate = self;
table.fDataSource = self;
[self.view addSubview:table];_data = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"datas" ofType:@"plist"]];
[table reloadData];
//这个testview会被leftTopView挡住
UIView *testView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 66)];
testView.backgroundColor = [UIColor blueColor];
[self.view addSubview:testView];
}