【发布时间】:2011-03-03 06:47:06
【问题描述】:
我在 ViewController 的 ViewDidLoad 中有以下编码
- (void)viewDidLoad {
[super viewDidLoad];
UIImageView* view = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @"logo.png"]];
view.frame = CGRectMake(300, 200, 200, 350);
[self.view addSubview:view];
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(300, 800, 200, 50)];
label.textColor = [UIColor blackColor];
[label setBackgroundColor:[UIColor clearColor]];
[label setFont:[UIFont systemFontOfSize:30]];
[label setText: @"Tap to Enter"];
[self.view addSubview:label];
[label release]; }
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
NSLog(@"Hello, You Tapped !"); }
现在我想点击并切换到另一个控制器,我想要他们的 UITabBarController,我该怎么做?
如果有人不清楚,可以再问我
【问题讨论】:
标签: ios cocoa-touch uinavigationcontroller