hi i am new to iphone . what i need is i have to display some text as help for my application. for that i create a button while clicking that i have to display text how can i done this. pls post some code thank u .
A:
on button click event load new UIviewController.
add uitextview in it and load your help text in that textview
priyanka
2010-08-14 06:17:19
pls post some code or sample example link
MaheshBabu
2010-08-14 06:34:17
+1
A:
Hi
Inside your button click event,
for example.
-(IBAction) showTextView:(id)sender{
yourSubViewController * subView = [[yourSubViewController alloc] initWithNibName:@"yourSubViewController" bundle:nil];
[self.navigationController pushViewController:subView animated:YES];
}
and inside yourSubViewController viewDidLoad method,
UITextView * textView = [[UITextView alloc] initWithFrame:CGRectMake(10, 10, 200, 200)];
textView.text = @"display your info text";
[self.view addSubview:textView];
before you must declare UITextViewDelegate in yourSubViewController.h
Sivanathan
2010-08-14 10:55:10