goo*_*guy 15 iphone uitextview
在我的1)UIView一(2)UIImageView将在这(3)UITextView.
这UITextView必须是透明的,我们必须查看imageView.
我怎样才能做到这一点?
Joh*_*ker 24
如果你只想让背景(而不是整个UITextView)透明,我相信你应该通过它继承自UIView的backgroundColor属性来做到这一点.
因此...
[yourTextView setBackgroundColor:[UIColor clearColor]];
Run Code Online (Sandbox Code Playgroud)
......应该有希望做到这一点.
但是,如果你想让整个 UITextView透明,那么alpha属性@taskinoor提到是完美的.
小智 7

然后,你完成了(如果我理解正确你,你不必处理任何代码)!
我用这种方式:
[textField setBackgroundColor:[UIColor clearColor]]; //clear background
[textField setBorderStyle:UITextBorderStyleNone]; //clear borders
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
22905 次 |
| 最近记录: |