我正在尝试通过Objective-C中的NSNotificationCenter发送和接收消息。但是,我无法找到任何有关如何执行此操作的示例。如何通过NSNotificationCenter发送和接收消息? 最佳答案 @implementationTestClass-(void)dealloc{//Ifyoudon'tremoveyourselfasanobserver,theNotificationCenter//willcontinuetotryandsendnotificationobjectstothedeallocated
我正在尝试通过Objective-C中的NSNotificationCenter发送和接收消息。但是,我无法找到任何有关如何执行此操作的示例。如何通过NSNotificationCenter发送和接收消息? 最佳答案 @implementationTestClass-(void)dealloc{//Ifyoudon'tremoveyourselfasanobserver,theNotificationCenter//willcontinuetotryandsendnotificationobjectstothedeallocated