I did my coding in xcode-4.2 and after updating xcode-4.5.1,My app running perfectly,while clicking window to navigate it shows following error.
Warning: Attempt to present <learnview: 0x8876220> on <UINavigationController: 0x8866e10> whose view is not in the window hierarchy!
I change the function from viewdidload() to viewdidappear() still its showing the same error?Please help me to solve out
Edited:
-(void)goright
{
CATransition* transition = [CATransition animation];
transition.duration = 1.5;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseOut];
transition.type = kCATransitionPush;
learnview *lview=[[learnview alloc]initWithNibName:@"learnview" bundle:nil];
transition.subtype = kCATransitionFromRight; //kCATransitionFromLeft, kCATransitionFromRight, kCATransitionFromTop, kCATransitionFromBottom
[self.navigationController.view.layer addAnimation:transition forKey:nil];
[[self navigationController] pushViewController:lview animated:NO];
[imagetim invalidate];
}