En mi 1) UIView
uno (2) UIImageView
estará en este (3) UITextView
.¿Cómo creo un UITextField transparente?
Este UITextView
debe ser transparente y tenemos que ver el imageView
.
¿Cómo puedo hacer esto?
En mi 1) UIView
uno (2) UIImageView
estará en este (3) UITextView
.¿Cómo creo un UITextField transparente?
Este UITextView
debe ser transparente y tenemos que ver el imageView
.
¿Cómo puedo hacer esto?
Si sólo desea que el fondo (en lugar de toda la UITextView) transparente, creo que debe hacerlo a través de la propiedad backgroundColor que hereda de UIView.
Como tal ...
[yourTextView setBackgroundColor:[UIColor clearColor]];
... esperemos que debe hacer el truco.
Sin embargo, si desea hacer entero UITextView transparente, la propiedad alfa @taskinoor menciona es perfecta.
Puede establecer la vista alfa de texto a cualquier valor deseado.
myTextView.alpha = 0.5; // 50% transparent
¿No afectará la propiedad alfa a todo (texto incluido)? Por otra parte, tal vez eso es lo que quiere. (Difícil de decir de la pregunta.) –
Ya, el texto también se cambiará. Supongo que eso es lo que está buscando. De lo contrario, he entendido mal la pregunta. – taskinoor
Hola Taskinoor estoy buscando UITextView debe ser transparente sin afectar el texto en él, –
utilizo de esta manera:
[textField setBackgroundColor:[UIColor clearColor]]; //clear background
[textField setBorderStyle:UITextBorderStyleNone]; //clear borders
Entonces, usted está hecho (que no tiene que hacer frente a cualquier código si he entendido bien)!
Gracias middaparka, lo conseguí, está trabajando –
Sí, exactamente lo que estoy buscando ... ¡gracias! – Resty