KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm creating an app in ios5 using storyboards. I have a tableviewcontroller embedded in a navigation controller and when you click on the cells in the tableviewcontroller some detail about that cell topic should be passed to a detail view. I use a plist to populate the tableview and the detail view. I've done this fine without using storyboard but want to learn how to use storyboard. I have seque going to my detail view from the tableviewcontroller. My code for the seque is: - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.identifier isEqualToString:@"DetailViewControllerSeque"]) { DetailViewController *detailViewController = [segue destinationViewController]; NSString *path = [[NSBundle mainBundle] bundlePath]; NSString *finalPath = [path stringByAppendingPathComponent:@"questList.plist"]; NSArray *tempArray = [finalPath valueForKey:@"description"]; NSString *descriptionString = [tempArray valueForKey:@"description"]; detailViewController.detailDescriptionText.text = descriptionString; } } Thanks for any help.
Tags (comma-separated)
Save Edits
Cancel