2010-08-14 22 views

回答

2

裏面的按鈕單擊事件,

例如您的幫助文本。

-(IBAction) showTextView:(id)sender{ 

yourSubViewController * subView = [[yourSubViewController alloc] initWithNibName:@"yourSubViewController" bundle:nil]; 

[self.navigationController pushViewController:subView animated:YES]; 

} 

和yourSubViewController viewDidLoad方法中,

UITextView * textView = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 200, 200)]; 

textView.text = @"display your info text"; 

[self.view addSubview:textView]; 

之前,你必須在yourSubViewController.h聲明UITextViewDelegate

0

on button click event load new UIviewController。在它

附加的UITextView並加載在TextView中

+0

請張貼一些代碼或樣品例如鏈接 – MaheshBabu 2010-08-14 06:34:17

相關問題