开发者

UPPERCASE Characters Convert to Case Sensitive in Iphone

In my Project there are some names which coming from Database But Problem is that all characters are coming in uppercase(as if i store in uppercase) but i want that characters should come like this....

SANJAY YADAV "Sanjay 开发者_开发百科Yadav"

It Should be Case Sensitive

Thanks in Advance..


You can make all your text in upper case / lower case and then do your code

NSString *username1 = [userName uppercaseString];
NSString *username1 = [userName lowercaseString];

Note: userName is NSString

Hope it helps...


You have to use NSString function "capitalizedString" for this. NSString *fooUpper = [foo capitalizedString];


check this : Change the first character in each word of a string to uppercase

if it doesn't work then convert all letters to lowercase and then do the above url

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜