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.
我想检查是否填充了 uiimageview,然后我有一个要隐藏的按钮。
我有这个代码,但它不起作用它似乎永久隐藏它......
if (imageView.image == nil) upload.hidden = YES;
试试这个:
if (imageView.image) upload.hidden = YES; else upload.hidden = NO;