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.
当我使用按钮禁用按钮时Button.enabled = NO;,它会淡出。
Button.enabled = NO;
有可能预防吗?
我想禁用按钮的功能,但我希望它具有相同的外观。
尝试使用
[Button setUserInteractionEnabled:NO];
希望对你有帮助!
您可以阻止用户使用此按钮与按钮交互
yourButton.userInteractionEnabled = NO;