I using xcode 4.2 new ARC feature to develop a new app,but i got a crash problem with pushViewController to present a new view.The following is my code:
QuestionVew *view = [[QuestionVew alloc] initWithStyle : UITableViewStyleGrouped];
[self.navigationController pushViewController : view animated : YES];
The view level is :
BookView -> ChapterView -> SectionView -> QuestionVew.
All of them are UITableViewController.
When I switch those views very quickly,the crash was happened! And the error message is :
-[UIViewAnimationState sendDelegateAnimationDidStop:finished:]:
message sent to deallocated instance 0x22b28f90
What happened for this situation?How do I solve it?
Thanks!
----------New Edit--------
After edit, I got problem :
[UIViewAnimationState release]: message sent to deallocated instance 0x3ade8f90
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// do something
QuestionVew *view = [[QuestionVew alloc] initWithStyle : UITableViewStyleGrouped];
[self performSelector : @selector(showChildView:) withObject:view afterDelay:0.1];
}
- (void) showChildView : (UITableViewController *) aView {
[self.navigationController pushViewController : aView animated : YES];
}
[UIViewAnimationState release]: message sent to deallocated instance 0x3ade8f90
And,I can't release any object because the ARC not allowed.