1,对于 通知,在发通知的 时候,viewdidload 注册过的 通知的页面,都会发一遍的,因此 可以把注册通知的 方法写到viewwillappear里面, 其它页面没有出来,因此只会调用一次,
2,alertview 在任何地方都是可以随时弹出的,而showtoast是不能的,它是需要长在view上面的,