摘要: AttributedString可以分为NSAttributedString和NSMutableAttributedString两种。在使用中通过将AttributedString赋值给控件的 attributedText 属性来添加文字样式。有属性的控件有UILabel、UITextField和U 阅读全文
posted @ 2017-03-24 14:06 有棱角的圆 阅读(691) 评论(0) 推荐(0) 编辑
摘要: // 类的反射 NSString *str = @"Person"; Class class = NSClassFromString(str); Person *person = [[class alloc] init]; NSLog(@"%@", person); // Class变成字符串 NS 阅读全文
posted @ 2017-03-24 11:56 有棱角的圆 阅读(206) 评论(0) 推荐(0) 编辑