我有几个字符串.有些人在开始时有空白,有些则没有.我想检查字符串是否以空格开头,如果是,则将其删除.
string whitespace objective-c
我有一个小问题.看起来很简单,但我没有让它工作.我想要的只是检查一个字符串是否为空.这是我到目前为止所拥有的:
if(mystring.text != @""){ myPath = [myPath stringByAppendingString:mystring.text]; }
iphone objective-c nsstring
objective-c ×2
iphone ×1
nsstring ×1
string ×1
whitespace ×1