|
|
@@ -657,10 +657,16 @@
|
|
|
[superview addSubview:controlView];
|
|
|
|
|
|
// controlView.width = IS_IPHONE_6P ? 98.0f : 120;
|
|
|
- controlView.width = ViewWidth(superview);
|
|
|
+ NSLog(@"Controll View : %f", ViewWidth(superview));
|
|
|
+// controlView.width = ViewWidth(superview);
|
|
|
+ controlView.backgroundColor = [UIColor blackColor];
|
|
|
[controlView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.size.mas_equalTo(controlView.frame.size);
|
|
|
- make.center.equalTo(superview);
|
|
|
+// make.size.mas_equalTo(superview.frame.size);
|
|
|
+// make.center.equalTo(superview);
|
|
|
+ make.top.equalTo(superview.mas_top).with.offset(0); //with is an optional semantic filler
|
|
|
+ make.left.equalTo(superview.mas_left).with.offset(0);
|
|
|
+ make.bottom.equalTo(superview.mas_bottom).with.offset(0);
|
|
|
+ make.right.equalTo(superview.mas_right).with.offset(0);
|
|
|
}];
|
|
|
}
|
|
|
|