unichar c;
c = [myString characterAtIndex:0];
unichar catchcar = [c lowercaseString];
error : invalid reciever type unicar.
I know lowercaseString
is used to covert String not character. Is there any solution?
unichar c;
c = [myString characterAtIndex:0];
unichar catchcar = [c lowercaseString];
error : invalid reciever type unicar.
I know lowercaseString
is used to covert String not character. Is there any solution?
you could do the following:
unichar catchcar = [[myString lowercaseString] characterAtIndex: 0];
If you have a a character only, do the following:
// given unichar c
unichar catchcar = [[[NSString stringWithCharacters:&c length:1] lowercaseString] characterAtIndex: 0];
Did that really hard?
unichar c = [[myString lowercaseString] characterAtIndex:0];
Try this.