In my program have table view.it has custom cell.
this custom cell has non editable textview.
when i touch this textview, popover popup. it working well in ios6 simulator.
but ios5.1 simulator not working. it gives this error message.
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIPopoverController presentPopoverFromRect:inView:permittedArrowDirections:animated:]: Popovers cannot be presented from a view which does not have a window.'
in my custom cell view i put this code for touch event
ViewControllerDateIpcker *popView =[[ViewControllerDateIpcker alloc]init];
popView.datedelegate = self;
_popover =[[UIPopoverController alloc]initWithContentViewController:popView];
[_popover presentPopoverFromRect:[_txtDate bounds]
inView:_txtDate
permittedArrowDirections:UIPopoverArrowDirectionAny
animated:YES];