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.
我UIButton在情节提要中创建了一个,将其声明为 .h 中的一个出口,但由于某种原因两者都没有
UIButton
addflight.userInteractionEnabled=NO;
或者
addflight.enabled=NO;
禁用它,我不知道我做错了什么?
请检查您是否已将 .h 文件中的 IBOutlet 连接到 nib。另请查看按钮上方是否没有视图。请参阅启用用户交互。 请参阅文档。 看到这个啧啧。