hi@all
i am new to iphone programming and had a question
i have 1 view controller and there is the automatic created view inside, ok.
all interactions are working well.
so i added a menu and when pressing a button a new view (UIView) which i already created in IB an did the property stuff in .h file too.
now when i press the button on View1(which was automatic created and shown) i want to switch to the other view. but its not working hm
what is the correct order to hide the first view and show the second view?
this does not work:
BUT it does not work, whats wrong here
maybe someone of you can help me out
hopefully
pille
i am new to iphone programming and had a question
i have 1 view controller and there is the automatic created view inside, ok.
all interactions are working well.
so i added a menu and when pressing a button a new view (UIView) which i already created in IB an did the property stuff in .h file too.
now when i press the button on View1(which was automatic created and shown) i want to switch to the other view. but its not working hm
what is the correct order to hide the first view and show the second view?
this does not work:
Code:
[self.view addSubview:MySecondView]; // adding the new view to viewcontroller?
[self.view removeFromSuperview]; // removing first,default view!?
[self.view bringSubviewToFront:MySecondView]; // show the second, manual created, view
BUT it does not work, whats wrong here
maybe someone of you can help me out
hopefully
pille