【发布时间】:2011-03-22 20:24:34
【问题描述】:
我假设我需要实现:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(resignActive:)
name:UIApplicationWillResignActiveNotification
object:nil];
但不确定这是否是确定我的应用即将离开活动状态的正确通知。
这是取消网络连接以及应用终止的好地方吗?
【问题讨论】:
标签: iphone objective-c cocoa-touch multitasking nsnotifications