//
//storyBoard view自动适配
+ (void)storyBoradAutoLay:(UIView *)allView
{
for (UIView *temp in allView.subviews) {
temp.frame = CGRectMakeMyself(temp.frame.origin.x, temp.frame.origin.y, temp.frame.size.width, temp.frame.size.height);
for (UIView *temp1 in temp.subviews) {
temp1.frame = CGRectMakeMyself(temp1.frame.origin.x, temp1.frame.origin.y, temp1.frame.size.width, temp1.frame.size.height);
}
}
}
//修改CGRectMake
CG_INLINE CGRect
CGRectMakeMyself(CGFloat x, CGFloat y, CGFloat width, CGFloat height)
{
AppDelegate *myDelegate = [[UIApplication sharedApplication] delegate];
CGRect rect;
rect.origin.x = x * myDelegate.autoSizeScaleX;
rect.origin.y = y * myDelegate.autoSizeScaleY;
rect.size.width = width * myDelegate.autoSizeScaleX;
rect.size.height = height * myDelegate.autoSizeScaleY;
return rect;
}