我正在尝试在 xcode 中的文档中创建文章。我的项目有多个模块。
对于一个模块中文章的链接,我有文档:markup。但我不明白如何链接到另一个模块的文章。
我尝试使用:
<doc:../../AnotherModule/AnotherModule.docc/Article>
<doc:../../AnotherModule/AnotherModule.docc/Article.md>
<doc:../../AnotherModule/AnotherModule/Article>
<doc:../../AnotherModule/AnotherModule/Article.md>
<doc:../../AnotherModule/Article>
<doc:../../AnotherModule/Article.md>
Run Code Online (Sandbox Code Playgroud)
但所有这些都不起作用。
我正在寻找一种方法来实现UITextField的输入掩码,如下所示: 
主要特点:
我用 RunLoop 做实验。我正在创建简单的 Mac OS 控制台应用程序并且只调用一行代码。
RunLoop.current.run()
Run Code Online (Sandbox Code Playgroud)
之后在调试导航器出现第二个线程。为什么?
我有一个简单的例子.1)我在界面构建器中创建AVPlayerViewController 2)我创建自己的自定义类扩展AVPlayerViewController 3)我写了几行代码
override func viewDidLoad() {
super.viewDidLoad()
let url = NSURL(string: "http://188.143.133.203/106.3/index.m3u8")
self.player = AVPlayer(URL: url!)
self.player?.play()
}
Run Code Online (Sandbox Code Playgroud)
我的工作效果更好,但如果设备状态处于静音模式,那么我的视频播放没有声音.
我托盘手动打开播放器中的声音,如下所示:
self.player?.muted = false
self.player?.volume = 1.0
Run Code Online (Sandbox Code Playgroud)
但它也不行.