UIPopoverController with UITableView?

In order to pass information from the View Controller of the popover you're going to want to set up a delegate. Here's a link to Apple's documentation and also a good guide example.

Up vote 0 down vote favorite share g+ share fb share tw.

I have a UIPopoverController that has a UITableView that is populated. I am trying to pass the information from the popovercontroller to the superview. The tableview that is placed in the popovercontroller is receiving the information with the didSelectRow method but the information is not transferring to the textView placed in the superView.

Below is the code I use to try and place the selected user in the textview and underneath that is the Superview code where I try to take the string and place it into the actual field when the index is clicked. I know my issue is I am not telling my superView that the row was touched and to send that information into the field but I have searched and con not find a good explanation on how to attempt this. If anyone has any suggestions that would be great!

Thanks - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath){ NSString *selectedUser = (Tweet*)Friend objectAtIndex:indexPath. Row followingScreenName; TwitterFollowersTimline *textBox = TwitterFollowersTimline alloc initWithNibName:@"TwitterFollowersTimeline" bundle:NSBundle mainBundle; textBox. SelectedFriend = selectedUser; NSLog(@"%@", selectedUser); textBox release; textBox = nil; } } In my SuperView selectedFriend = NSString alloc init; creatTweetText.

Text = NSString stringWithFormat:@"@%@", selectedFriend; iphone ios uitableview uipopovercontroller superview link|improve this question asked Jul 4 '11 at 19:32FreeAppl312717 56% accept rate.

Everything not clear, I cannot help you, sorry. – viggio24 Jul 4 '11 at 20:41 sorry it wasn't clear for you to understand. I try to put just enough code in to explain the issue but not bombard a page full of unneeded code.

Thanks for trying to help. I believe @brandon below has helped send me in the right direction. – FreeAppl3 Jul 5 '11 at 1:24.

In order to pass information from the View Controller of the popover you're going to want to set up a delegate. Here's a link to Apple's documentation and also a good guide example. developer.apple.com/library/ios/#documen... iphonedevelopertips.com/objective-c/the-... Essentially when you create the View Controller that houses the methods for your table view, you'll want to give it a delegate.

Then once a cell is selected in your table view, you'll be able to send a call to your delegate with any information you need.

Thanks Brandon! Sounds about right! I appreciate the answer and think I might be able to do this relatively easy, quick and painless!

– FreeAppl3 Jul 5 '11 at 1:28.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions