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.
在一个 Cocoa 应用程序中,我添加了一个 UISlider。如果我在不添加任何代码的情况下运行程序,那么我可以左右拖动滑块。但是,如果我为它分配一个 IBOutlet,一旦我触摸滑块,应用程序就会退出。这是为什么?
好吧,我解决了这个问题。如果我使应用程序成为基于窗口的应用程序,那么我没有任何问题。如果我将应用程序设为基于视图的应用程序,则会出现问题。这是为什么?