我有這樣的問題......我對apps..when基於我按在第二screen..it按鈕導航工作顯示了一個新的觀點從一個視圖到另一個視圖
button=[[UIButton alloc]initWithFrame:frame];
button.frame = CGRectMake(60,250,200,69);
[button setTitle:@"Crack Now" forState:UIControlStateNormal];
[button addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
[button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
button.opaque;
[self.view addSubview:button];
-(void)buttonClicked{
secondViewcontroller=[[SecondViewController alloc]initWithNibName:@"secondViewController" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:secondViewcontroller animated:YES];
[self.navigationController presentModalViewController:secondViewcontroller animated:YES];
}
-(void)viewDidLoad{
CGRect frame=CGRectMake(80,0,200,100);
label=[[UILabel alloc] initWithFrame:frame];
label.text = @"text";
label.backgroundColor = [UIColor clearColor];
label.textColor = [UIColor blueColor];
label.textAlignment = UITextAlignmentLeft;
label.font = [UIFont systemFontOfSize:20];
[self.view addSubview:label];
myImage=[[UIImageView alloc]initWithFrame:frame];
myImage.frame=CGRectMake(90,70,150,170);
[myImage setImage:[UIImage imageNamed:@"Untitled-3.jpg"]];
myImage.opaque;
[self.view addSubview:myImage];
[super viewDidLoad];
}