tags:

views:

22

answers:

2

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
pls post some code or sample example link
MaheshBabu
+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