objective c - ios how to hide one uiview and push another uiview at the same position -


i want set myview hidden , view visible, how can this. code got far makes hidden.

cgrect frame = cgrectmake(185, 960, 768, 1004);  hiuiview *view = [[uiview alloc] initwithframe:frame]; view.backgroundcolor = [uicolor redcolor];  [self.myview addsubview:view]; [self.myview sethidden:yes]; 

you adding view inside , hide second. first child of second, hidden too.

you can try adding "view" in parent of "myview".


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -