判断输入是否为空格:
NSString *name=aPeople.name;
name=[name stringByReplacingOccurrencesOfString:@" " withString:@""];
if([name isEqualToString:@""])
{
NSLog(@".name=|%@|...........",name);
}
时间: 2024-12-13 02:02:43
判断输入是否为空格:
NSString *name=aPeople.name;
name=[name stringByReplacingOccurrencesOfString:@" " withString:@""];
if([name isEqualToString:@""])
{
NSLog(@".name=|%@|...........",name);
}