iOS自动适配
// iOS适配 自动适配 手动适配 // 只需要在要适配的控制器上加下面3句话,即可完成自动适配 #pragma mark- AutoAjustAttag - (void)dealloc{ // 销毁参照 [self.view removeRelation]; } - (void)viewWillAppear:(BOOL)animated{ // 自动适配 [self.view setAutoAjustWithSupderAccordingFrame:SGKScreenFrameIPhone3_5Portrait]; } - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration{ // 手动旋转适配 [self.view autoAjustRelationWithInterfaceOrientation:toInterfaceOrientation]; }
下载地址
用户评论
我想问下。具体怎么用。需要import文件吗?iphone6 6+也可以适配吗?
非常好用,真的