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.
我想将 characterAtIndex 返回的字符与一些“硬”字符进行比较,例如 @" " 或 @"P"。这可能看起来很愚蠢,但我找不到这样做的方法......
使用单引号:
if ([@"test" characterAtIndex:1] == 'e')