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')