AVISO: Cualquier pregunta que no cumpla ninguno de estos criterios podrá ser borrada sin previo aviso.

Capa encima UIView

Buenas tengo una UIView creada en el build y luego por código al apretar un botón tiene que aparecer una nueva uiview creada por código, el problema es que la nueva UIview esta encima de la otra UIView, lo que quisiera es que no este sobreencima, sino , detrás. gracias.

preguntado 14 Mar '12, 21:15

Dunkelheit's gravatar image

Dunkelheit
209192532


Haciendo un pequeño esfuerzo y consultando la documentación sobre la clase UIView podrías ver que tiene, entre otros, los siguientes métodos:

- (void)removeFromSuperview;
- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index;
- (void)exchangeSubviewAtIndex:(NSInteger)index1 withSubviewAtIndex:(NSInteger)index2;

- (void)addSubview:(UIView *)view;
- (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;
- (void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview;

- (void)bringSubviewToFront:(UIView *)view;
- (void)sendSubviewToBack:(UIView *)view;

- (void)didAddSubview:(UIView *)subview;
- (void)willRemoveSubview:(UIView *)subview;

- (void)willMoveToSuperview:(UIView *)newSuperview;
- (void)didMoveToSuperview;
- (void)willMoveToWindow:(UIWindow *)newWindow;
- (void)didMoveToWindow;

Supongo que necesitas algo del tipo

- (void)insertSubview:(UIView *)view belowSubview:(UIView *)siblingSubview;
enlace permanente

respondido 15 Mar '12, 10:58

LightMan's gravatar image

LightMan
1.7k4617

gracias me sirvió de mucho

(18 Abr '12, 16:02) Dunkelheit
Tu respuesta:
Activar/desactivar vista previa

Sobre esta pregunta

Etiquetas de la pregunta:

×200
×50

Pregunta realizada el: 14 Mar '12, 21:15

Pregunta visitada: 561 veces

Última modificación: 18 Abr '12, 16:02

Seguir esta pregunta

Por Email:

Una vez que entres podrás suscribirte desde aquí para recibir actualizaciones

Por RSS:

Respuestas

Respuestas y Comentarios

Realizar Donación