How do I change the UIView programmatically?
Posted
by user317834
on Stack Overflow
See other posts from Stack Overflow
or by user317834
Published on 2010-04-15T18:15:21Z
Indexed on
2010/04/15
18:33 UTC
Read the original article
Hit count: 251
I have created View A and View B. My window has View A displayed on the screen. I also have a UIButton on View A. I want to switch from View A to View B when I click on the Button. I am not using any UIViewController. Is it possible to switch the views without using controller? I am calling buttonAction method on TOUCHUPINSIDE
The problem is that it doesn't do anything when I say
[ViewA removeFromSuperView];
What should I do now?
© Stack Overflow or respective owner