NSNotificationCenter 传对象

 [[NSNotificationCenter defaultCenter] postNotificationName:@"postCity" object:pro];

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(cityCallBack:) name:@"postCity" object:nil];

- (void)cityCallBack:(NSNotification *)notification
{
    if (nil != notification.object)
    {
        ProvinceModel *obj = (ProvinceModel *)notification.object;
        [addresslbl setText: obj.cityName];
    }
}
原文地址:https://www.cnblogs.com/joesen/p/3521424.html