我的推出是在
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event中推出的,
退出是在
-(void)touchesEnd:(NSSet *)touches withEvent:(UIEvent *)event中退出的
结果就报这个:
Warning: Attempt to present <NextViewController: 0x10966fed0> on <ViewController: 0x109261910> whose view is not in the window hierarchy!
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event在这个退出就没有错误了。