using startMonitoringEventWithType: error: in the effort to detect wifi SSID change
问题 Apple seems to introduce quite a change with Yosemite and CoreWLAN framework. I would like to use its new API, quoting the header file: /*! * @method * * @param type * A CWEventType value. * * @param error * An NSError object passed by reference, which upon return will contain the error if an error occurs. * This parameter is optional. * * @result * A BOOL value indicating whether or not an error occurred. YES indicates no error occurred. * * @abstract * Register for specific Wi-Fi event