摘要:今天在网上找了下,iphone的UITextView字体类型的设置。现总结如下,如有误,欢迎指正。[textViewsetFont:[UIFontfontWithName:@"TrebuchetMS-Italic"size:18]];但是字体的类型名不好找,总结下有这么些类型:// 列出iPhone上所有的字体// List all fonts on iPhoneNSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];NSArray *fontNames;NSInteger in
阅读全文
05 2013 档案
摘要:转http://blog.csdn.net/toddmi/article/details/8133967给一个对象简单设置阴影效果:[html]view plaincopyLable.shadowColor=color;Lable.shadowOffset=CGSizeMake(0,-1.0);或[html]view plaincopyUIView*testView=[[UIViewalloc]initWithFrame:CGRectMake(30,30,130,130)];[testViewsetBackgroundColor:[UIColorgrayColor]];[[testViewla
阅读全文
摘要:再UITableViewCell添加如下方法- (void)changeSelectedColor{ self.contentView.backgroundColor = [UIColor lightGrayColor]; self.bgView.backgroundColor = UIColorWithRGB(0xf3, 0xf3, 0xf3); UIView *backView = [[UIView alloc] initWithFrame:self.frame]; self.selectedBackgroundView = backView; ...
阅读全文