摘要:
//设置圆角 self.layer.cornerRadius =5; self.layer.borderColor =[[UIColor lightGrayColor]CGColor]; self.layer.borderWidth =2; //设置阴影 self.layer.shadow... 阅读全文
摘要:
- (void)viewDidLoad { [super viewDidLoad]; //在viewDidLoad方法中,不能使用superView,因为view的get方法还没有走完,肯定没有添加的其他视图上。 NSLog(@"%@",self.view.subviews); //在ini... 阅读全文
摘要:
使用虚化,可以使图片显得模糊,有神秘感。//添加毛玻璃 UIVisualEffect *blurEffect =[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]; _xView =[[UIVisualEffectView alloc]ini... 阅读全文