摘要:
AttributedString可以分为NSAttributedString和NSMutableAttributedString两种。在使用中通过将AttributedString赋值给控件的 attributedText 属性来添加文字样式。有属性的控件有UILabel、UITextField和U 阅读全文
摘要:
// 类的反射 NSString *str = @"Person"; Class class = NSClassFromString(str); Person *person = [[class alloc] init]; NSLog(@"%@", person); // Class变成字符串 NS 阅读全文