home键通知

 NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("closeAlert"), name: UIApplicationDidBecomeActiveNotification, object: nil)//应用后台进入前台通知
NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("closeAlert"), name: UIApplicationWillResignActiveNotification, object: nil)//点击home键应用进入后台通知
上一篇:JAVA数据库处理(连接,数据查询,结果集返回)


下一篇:ajax中使用post传值数组array