2011-03-11 63 views

回答

0

編輯您的AppDelegate.m文件

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {   
// Override point for customization after application launch. 
// Add the view controller's view to the window and display. 
[window addSubview:viewController.view1];//you may add view2, view3 
[window makeKeyAndVisible]; 

return YES; 

}

3

您可能需要提供更多的細節才能得到準確的答案。假設你有一個包含多個UIView的UIViews,幾件事情看的:

的UIView:

- (void)bringSubviewToFront:(UIView *)view 
- (void)sendSubviewToBack:(UIView *)view 
- (void)insertSubview:(UIView *)view aboveSubview:(UIView *)siblingSubview 
- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index 
相關問題