Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道我如何以编程方式在 watchkit 中隐藏 WKInterfaceButton?
似乎没有像 uibutton 这样的 setHidden 界面。
正如 mp 所说,wkinterfacebutton 有一个 setHidden 方法,用于将该方法设置为 true 或 false。