New methods of NSString in iOS6
来源:互联网 发布:21级研究所升级数据 编辑:程序博客网 时间:2024/06/10 01:08
NSString *string = @"hello, this is Andy yi!";
NSString *upperString = [string uppercaseStringWithLocale:[NSLocale currentLocale]];
NSLog(@"upperStr: %@", upperString);
NSString *capString = [upperString capitalizedStringWithLocale:[NSLocale currentLocale]];
NSLog(@"capStr: %@", capString);
NSString *lowerString = [capString lowercaseStringWithLocale:[NSLocale currentLocale]];
NSLog(@"lowerStr: %@", lowerString);
This is the result:
2012-11-15 09:52:48.232 SeperateImage[322:11303] upperStr: HELLO, THIS IS ANDY YI!
2012-11-15 09:52:48.234 SeperateImage[322:11303] capStr: Hello, This Is Andy Yi!
2012-11-15 09:52:48.235 SeperateImage[322:11303] lowerStr: hello, this is andy yi!
0 0
- New methods of NSString in iOS6
- Avoiding new methods of process detection
- what's new in ios6 ios7 ios8
- Purpose of Instance Methods vs. Class Methods in Objective-C
- Two Methods of Multitexture In Cg
- Two methods of transporting file in webservice
- New Support Classes for @RequestMapping methods in Spring MVC 3.1
- The implementation of anonymous methods in C# and its consequences
- Methods Collection of Enumerating Com Port in Windows, by C
- [MED]Summary of Methods used in MED task(TRECVID 2015)
- Thinking in Java(8)-Behavior of Polymorphic methods inside constructors
- pansharping文献:《A survey of classical methods and newtrends in pansharpening of multipectral images》
- Use of “this” keyword in formal parameters for static methods in C#
- TURF: New Methods for Implementation
- Kernel Methods in Ruby
- Locks In Synchronized Methods
- Overloading Methods in WCF
- virtual methods in tolua++
- CSU-1407: 最短距离
- linux文件结构
- main()主函数内外的变量有何区别??(菜鸟级的问题)
- android用于打开各种文件的intent
- Android Handler Message总结
- New methods of NSString in iOS6
- Java加密解密快速入门下篇【包括MD5、BASE64、DES、RSA等算法】
- Java中的==和equals区别
- 找工作的经验
- mysql 中文乱码解决方案
- java中的float double精度丢失的解决方案
- 关于网站运营和管理
- java 代码优化
- 2014年ACM-ICPC西安邀请赛 update~