NotificationUnregistering
Testing the behavior of the block based NotificationCenter API. Do you have to call NotificationCenter.removeObserver(_:) or is it enough to let the observer token go out of scope? Turns out: the former (tested on iOS 11.2).
Install / Use
/learn @ole/NotificationUnregisteringREADME
Do you have to manually unregister block-based NotificationCenter observers?
tl;dr: yes. (Tested on iOS 11.2.)
For more info, see the accompanying article.
This is the test app I used to test the behavior of NotificationCenter.addObserver(forName:object:queue:using:) under various scenarios.
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
