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.
いくつかの文字列変数を使用して、ラベルにいくつかの (値) を割り当てました。
文字列変数が同じ値を示す値ラベルを返す場合。ただし、文字列が値ラベルを表示していない場合 (null)。
そのため、文字列変数が何も返さない場合は、ラベルに何も表示したくありません。
if([label.text isequaltostring:@"null"])
また
string.length==0;
string.text==nil
それから置く
label.text=@"";