Hi,
Is this your questions; when you get your response from the server, you need to make a view controller and put that string into it?
Try something like this in your first view controller
// Get the string from the server
NSString *string = [get string from server];
// Create the second controller
SecondViewController *controller = [[SecondViewController alloc] initWithNibName:@"nibname" bundle:nil];
// Set the text property of a label in the controller
controller.myLabel.text=string;
// Add the view to the window so we can see it
[[[[UIApplication sharedApplication] delegate] window] addSubview:controller.view];
This will create a new controller, set a string in it and display it in the window.
You will need to make a xib file that contains a UILabel and attach it to a propety called myLabel in the second controller i.e.
@interface SecondViewController {
UILabel *myLabel;
}
@property (nonatomic, retain) IBOutlet UILabel *myLabel;
@end
Hope this helps,
Sam