ios 设置圆角和边框以及获取导航条高度

 [_img.layer setBorderColor:[TheParentClass colorWithHexString:@"#d7d7d7"].CGColor];
 [_img.layer setBorderWidth:1];
 [_img.layer setMasksToBounds:YES];
 _img.layer.cornerRadius = 6*autoSizeScaleX;
 _img.layer.masksToBounds = 6*autoSizeScaleX;
 
 
 
 CGFloat navheight = self.navigationController.navigationBar.frame.size.height;//导航栏目高度
 CGRect rectStatus = [[UIApplication sharedApplication] statusBarFrame];//状态栏高度

你可能感兴趣的:(ios 设置圆角和边框以及获取导航条高度)