NoticeObserveKit是类型安全的NotificationCenter包装器。-Swift开发

时间:2021-05-27 05:58:11
【文件属性】:
文件名称:NoticeObserveKit是类型安全的NotificationCenter包装器。-Swift开发
文件大小:46KB
文件格式:ZIP
更新时间:2021-05-27 05:58:11
Swift Miscellaneous NoticeObserveKit NoticeObserveKit是类型安全的NotificationCenter包装器。 // .keyboardWillShow是静态属性。 Notice.Center.default.observe(name:.keyboardWillShow){在此情况下,keyboardI NoticeObserveKit NoticeObserveKit是类型安全的NotificationCenter包装器。 // .keyboardWillShow是静态属性。 Notice.Center.default.observe(name:.keyboardWillShow){keyboardInfo in //在这种情况下,keyboardInfo是UIKeyboardInfo类型。 //它是从Notice.Name的通用参数推断出来的 。 print(keyboardInfo)} //池是Notice.ObserverPool。 //如果释放池,则Notice.Observes将被自动删除。 .invalidated(by:pool)用法首先,您
【文件预览】:
NoticeObserveKit-master
----.travis.yml(527B)
----NoticeObserveKit.xcworkspace()
--------contents.xcworkspacedata(166B)
--------xcshareddata()
----Example()
--------NoticeObserveKitSampleTests()
--------Podfile(431B)
--------Podfile.lock(297B)
--------NoticeObserveKit.playground()
--------NoticeObserveKitSample()
--------NoticeObserveKitSample.xcodeproj()
--------NoticeObserveKitSample.xcworkspace()
----LICENSE(1KB)
----NoticeObserveKit.podspec(2KB)
----documents()
--------v0_4_0.md(3KB)
----NoticeObserveKit()
--------NoticeObserveKit.swift(4KB)
--------NoticeObserveKit.h(709B)
--------Notice.swift(5KB)
--------Info.plist(726B)
----NoticeObserveKitTests()
--------Info.plist(701B)
--------NoticeObserveKitTests.swift(4KB)
----.gitignore(617B)
----NoticeObserveKit.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(29KB)
--------xcshareddata()
----README.md(4KB)

网友评论