摘要:
NSString*obj = [[NSData alloc] init]; obj在编译时和运行时分别时什么类型的对象?编译时是NSString的类型;运行时是NSData类型的对象 阅读全文
摘要:
- (void)colorWithHexString: (NSString *) stringToConvert{ //去掉前后空格换行符 NSString *cString = [[stringToConvert stringByTrimmingCharactersInSet:[NSCharacterSetwhitespaceAndNewlineCharacterSet]] uppercaseString]; if ([cString hasPrefix:@"0X"]) cString = [cString substringFrom... 阅读全文