// 如果登录成功 发送一个通知
[[NSNotificationCenter defaultCenter] postNotificationName:@"EDITPERSON"
object:nil];
// 接受登录成功的通知
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(editloginState)
name:@"OUTLOGIN"
object:nil];
// 如果登录成功 发送一个通知
[[NSNotificationCenter defaultCenter] postNotificationName:@"EDITPERSON"
object:nil];
// 接受登录成功的通知
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(editloginState)
name:@"OUTLOGIN"
object:nil];
本文标题:发送通知(如登录成功改变页面状态)
本文链接:https://www.haomeiwen.com/subject/ipwleftx.html
网友评论