我目前刺探postNotification
這樣獼猴桃間諜
__block KWCaptureSpy *notificationSpy = [[NSNotificationCenter
defaultCenter] captureArgument:@selector(postNotification:) atIndex:0];
的問題是我有不同的通知名稱的多個通知。我如何訪問間諜的不同通知參數。
例如,說我有Notification1和Notification2間諜參數捕獲通知1,但我無法捕獲通知2。
任何想法如何做到這一點?
我注意到你沒有回答我的答案,做了一些改變,答案不再回應這個問題? – Cristik