How to pass userInfo in NSNotification?

后端 未结 4 1016
甜味超标
甜味超标 2020-12-23 19:36

I am trying to send some data using NSNotification but get stuck. Here is my code:

// Posting Notification
NSDictionary *orientationData;
if(iFromInterfaceOr         


        
4条回答
  •  北海茫月
    2020-12-23 19:58

    Your selector must have : to accept parameters.
    e.g.

    @selector(orientationChanged:)
    

    then in the method declaration it can accept the NSNotification parameter.

提交回复
热议问题