How to get a single NSString character from an NSString

前端 未结 4 1549
庸人自扰
庸人自扰 2021-01-30 15:56

I want to get a character from somewhere inside an NSString. I want the result to be an NSString.

This is the code I use to get a single character at index it:



        
4条回答
  •  梦如初夏
    2021-01-30 16:37

    NSMutableString *myString=[NSMutableString stringWithFormat:@"Malayalam"];
    NSMutableString *revString=@"";
    
    for (int i=0; i

提交回复
热议问题