PDA

View Full Version : Help Please!! Sending text to a new view




JoshAK
Nov 22, 2008, 03:25 PM
I have a simple table that drills down to a detailed view. I want to have an info button display more info relating to the detail view. I have everything working except the more detailed text. Here is how my project is setup

RootViewController

Drill down to ViewController

then the ViewController displays the more detailed view.

I'm using

- (void)viewWillAppear:(BOOL)animated {

code to display the new view.

}
on the ViewController

Do I need to setup a NSString to pass the data or something else. Please Help!!!

I hope someone can understand this. Thanks



zed2
Nov 23, 2008, 01:10 AM
I have a simple table that drills down to a detailed view. I want to have an info button display more info relating to the detail view. I have everything working except the more detailed text. Here is how my project is setup

RootViewController

Drill down to ViewController

then the ViewController displays the more detailed view.

I'm using

- (void)viewWillAppear:(BOOL)animated {

code to display the new view.

}
on the ViewController

Do I need to setup a NSString to pass the data or something else. Please Help!!!

I hope someone can understand this. Thanks


well the way I do this is.. once I've created the new view object.. I can update any of the UIObjects...

[myNewView setcomment:@"a new comment"];

when I'm done updating it, just call the function to display it.

--Zed