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.
可能重复: iOS 将按钮标题与字符串进行比较
有人可以告诉我如何比较 UIlabel 和字符串@“abc”。
让我们说 if(UIlabel??? == @"abc");
[myLabel.text isEqualToString:@"abc"]