iphone - Multiple Views in one Window -


I am writing a visual based app, but I am a bit confused about loading my thoughts. I want to load four different ideas in the same window at the same time. I do not seem to understand how to do this. If possible, instead of interface builder I prefer to do the program completely

My 4 views: With a UIView, a UIWebView, a UITableView and other UIView buttons.

Thanks in advance for help.

Scenes are arranged in an iPhone app - that is, " Father "view (except for the original scene). The interesting bit here is that UIWindow is a subclass of UIView automatically, so you can add all four views directly to your window (this can not be the best approach, but this is probably the easiest.) < / P>

All you really have to do is get your four sequences started with the space and dimension according to the program in the UI window, you do this by giving each view the frame parameter , Either init In Idi or later (depending on the view type). Therefore, for example, you can add this code to your app representative:

  CGFF frame = CGRT chemic (0.0, 0.0, 100.0, 100.0); UIView * view = [[[UIView alloc] initWithFrame: frame] autorequez]; [Window adsubview: view];  

This will create a 100x100-pixel view and add it to the top left corner of the window. You can do similar things for each of the other three ideas.

Note that developers usually do not start direct ideas in app representatives - for a better view, the location of the fifth scene may be the root view for the other four, then that window to the root window Add to You can use a visual controller for the fifth scene to make this work easier - move the visual initial code into the implementation of the view controller, then by app representative, you can just instantiate the view controller and there it is there Can take from


Comments

Popular posts from this blog

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -