博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年5月8日

摘要: 今天在网上找了下,iphone的UITextView字体类型的设置。现总结如下,如有误,欢迎指正。[textViewsetFont:[UIFontfontWithName:@"TrebuchetMS-Italic"size:18]];但是字体的类型名不好找,总结下有这么些类型:// 列出iPhone上所有的字体// List all fonts on iPhoneNSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNames]];NSArray *fontNames;NSInteger in 阅读全文
posted @ 2013-05-08 18:42 Likwo 阅读(556) 评论(0) 推荐(1) 编辑

摘要: 转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 阅读全文
posted @ 2013-05-08 18:19 Likwo 阅读(715) 评论(0) 推荐(0) 编辑

摘要: 再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; ... 阅读全文
posted @ 2013-05-08 15:10 Likwo 阅读(1248) 评论(0) 推荐(0) 编辑