Up vote 1 down vote favorite share g+ share fb share tw.
I'm working sample app by storyboard. When made popoverview, I used the way - 'Embed in navigation controller'. But I'm getting a big trouble of delegate usage.
It's that don't delegate to popover view's. ViweController. M -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ if(segue identifier isEqualToString:@"PopRootViewController"){ NSLog(@"segue destinationViewController :%@", segue destinationViewController); rootViewController = RootViewController alloc init; rootViewController.
Delegate = (id)self; NSLog(@"%@---%@---%@", rootViewController. Delegate, self, rootViewController); } } -(void)didTap22 { NSLog(@"delegate step 1 success! "); } The result of this source like this : segue destinationViewController : ------ but RootViewController don't receive the delegation.
RootViewController. M @implementation RootViewController @synthesize items, delegate; - (void)viewWillAppear:(BOOL)animated { super viewWillAppear:animated; .... self. Items = mutableFetchResults; NSLog(@"333333..... %@, ....... %@", self.
Delegate, self); } results : 333333..... (null), ....... RootViewController's delegation is null. I can't find solution about this. Anybody help me, please!
Ios ios5 storyboard xcode4.2 link|improve this question edited Nov 20 '11 at 16:09Anne6,1832521 asked Nov 4 '11 at 1:38hyekyung976 58% accept rate.
Put a NSLog(@"about to set delegate"); before the line rootViewController. Delegate = (id)self;, that should explain it. – ott-- Nov 4 '11 at 2:38 I'm sorry but I can't understand your comment.
What is my fault? – hyekyung Nov 4 '11 at 6:11 It should show that viewWillAppear was already called when you set the delegate. – ott-- Nov 4 '11 at 12:25.
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.