A類需要調用B類中的方法
先在B類中注冊通知
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(selectCity) name:@"cityclick" object:nil];
注冊的通知名為"cityclick",對應要執行的的方法為selectCity
在A類
[[NSNotificationCenter defaultCenter] postNotificationName:@"cityclick" object:self];