|
|
@@ -1234,7 +1234,7 @@
|
|
|
myView.layer.shadowOffset = CGSizeMake(0, 0);
|
|
|
myView.layer.shadowOpacity = 0.5;
|
|
|
myView.layer.shadowRadius = 2.0;
|
|
|
-
|
|
|
+ myView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
|
|
|
|
|
|
NSString*labeltitle = nil;
|
|
|
switch (section) {
|
|
|
@@ -1261,6 +1261,7 @@
|
|
|
btn.tag=section;
|
|
|
[btn addTarget:self action:@selector(HideSction:) forControlEvents:UIControlEventTouchUpInside];
|
|
|
[btn setTitle:btntitle forState:UIControlStateNormal];
|
|
|
+ btn.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
|
|
|
[myView addSubview:btn];
|
|
|
|
|
|
}
|
|
|
@@ -1284,6 +1285,7 @@
|
|
|
[btn addTarget:self action:@selector(HideSction:) forControlEvents:UIControlEventTouchUpInside];
|
|
|
|
|
|
[btn setTitle:btntitle forState:UIControlStateNormal];
|
|
|
+ btn.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
|
|
|
[myView addSubview:btn];
|
|
|
|
|
|
}
|
|
|
@@ -1301,6 +1303,7 @@
|
|
|
titlelabel.backgroundColor = [UIColor clearColor];
|
|
|
titlelabel.text=NSLocalizedString(labeltitle, nil);
|
|
|
[titlelabel sizeToFit];
|
|
|
+ titlelabel.autoresizingMask = UIViewAutoresizingFlexibleRightMargin;
|
|
|
[myView addSubview:titlelabel];
|
|
|
|
|
|
//
|