我尝试为我的UITextView
应用阴影,就像我为UIView
所做的一样,但它没有起作用。
我尝试为我的UITextView
应用阴影,就像我为UIView
所做的一样,但它没有起作用。
试试这段代码:
txtView.layer.cornerRadius = txtView.frame.size.height/2;
txtView.clipsToBounds = NO;
txtView.layer.shadowOpacity=0.4;
txtView.layer.shadowOffset = CGSizeMake(3, 3);
txtView.layer.cornerRadius = txtView.frame.size.height/2
txtView.clipsToBounds = false
txtView.layer.shadowOpacity=0.4
txtView.layer.shadowOffset = CGSizeMake(3, 3)
我希望它能为你工作。