摘要: 原帖地址:http://blog.sina.com.cn/s/blog_6cffce7701016k7p.htmlNSAttributedString可以让我们使一个字符串显示的多样化,但是目前到iOS 5为止,好像对它支持的不是很好,因为显示起来不太方便(至少没有在OS X上方便)。首先导入CoreText.framework,并在需要使用的文件中导入:#import<CoreText/CoreText.h>创建一个NSMutableAttributedString:1 NSMutableAttributedString *attriString = [[[NSMutableAt 阅读全文
posted @ 2013-02-24 19:01 归为虚无 阅读(3580) 评论(0) 推荐(0) 编辑
摘要: 获得IOS系统版本号1 [[[UIDevice currentDevice] systemVersion] floatValue]获得硬件名称 1 + (NSString*)getMachine{ 2 size_t size; 3 sysctlbyname("hw.machine", NULL, &size, NULL, 0); 4 char *name = malloc(size); 5 sysctlbyname("hw.machine", name, &size, NULL, 0); 6 7 NSString *machine = [ 阅读全文
posted @ 2013-02-24 18:15 归为虚无 阅读(6686) 评论(0) 推荐(0) 编辑