#disappear

exception disappear when forgot to await an async method

https://github.com/aspnet/AspNetWebStack/issues/235https://stackoverflow.com/questions/5383310/catch-an-exception-thrown-by-an-async-void-method 如果异常发生在1个a...

尽量不要在viewWillDisappear:方法中移除通知

在了解控制器的生命周期之后,我们都知道viewWillAppear:方法是在控制器的view将要显示的时候调用的,而viewWillDisappear:方法是在控制器的view将要隐藏的时候调用。很多时候我们根据自身需要将相关代码逻辑添加到这两个方法中,我们看下如下代码片段:监听键盘的通知代码 这段代码是在控...

IOS 视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear等的区别及用途

iOS视图控制对象生命周期-init、viewDidLoad、viewWillAppear、viewDidAppear、viewWillDisappear、viewDidDisappear的区别及用途init-初始化程序viewDidLoad-加载视图viewWillAppear-UIViewController对象的...