2015年7月23日

cell前面添加一个图片

摘要: cell.imageView.image=[UIImage imageNamed:@"yygl.png"]; 阅读全文

posted @ 2015-07-23 11:37 yucaijiang 阅读(262) 评论(0) 推荐(0) 编辑

边框宽度 边框圆角 边框颜色

摘要: self.label1.layer.borderWidth=1;//边框宽度 //self.label1.layer.cornerRadius=5;//边框圆角 CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); C... 阅读全文

posted @ 2015-07-23 11:36 yucaijiang 阅读(296) 评论(0) 推荐(0) 编辑

nstimer实现倒计时

摘要: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566// [NSTimer scheduledTimerW... 阅读全文

posted @ 2015-07-23 11:33 yucaijiang 阅读(188) 评论(0) 推荐(0) 编辑

用nstimer实现倒计时

摘要: 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566// [NSTimer scheduledTimerW... 阅读全文

posted @ 2015-07-23 11:32 yucaijiang 阅读(239) 评论(0) 推荐(0) 编辑

IOS常用宏定义

摘要: 234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980... 阅读全文

posted @ 2015-07-23 11:30 yucaijiang 阅读(219) 评论(0) 推荐(0) 编辑

计算文字的Size

摘要: /*** 计算文字尺寸* @param text 需要计算尺寸的文字* @param font 文字的字体* @param maxSize 文字的最大尺寸*/- (CGSize)sizeWithText:(NSString *)text font:(UIFont *)font maxSize:(CG... 阅读全文

posted @ 2015-07-23 10:54 yucaijiang 阅读(210) 评论(0) 推荐(0) 编辑

判断UITableView滚动是否到底

摘要: - (void)scrollViewDidScroll:(UIScrollView *)aScrollView {CGPoint offset = aScrollView.contentOffset;CGRect bounds = aScrollView.bounds;CGSize size = a... 阅读全文

posted @ 2015-07-23 10:52 yucaijiang 阅读(390) 评论(0) 推荐(0) 编辑

设置Label行间距

摘要: -(void)fuwenbenLabel:(UILabel *)labell FontNumber:(id)font AndLineSpacing:(float)lineSpacing{//富文本设置文字行间距NSMutableParagraphStyle *paragraphStyle = [[N... 阅读全文

posted @ 2015-07-23 10:51 yucaijiang 阅读(474) 评论(0) 推荐(0) 编辑

UIAlertView 提示弹窗

摘要: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"没有收藏产品" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:nil,... 阅读全文

posted @ 2015-07-23 10:49 yucaijiang 阅读(186) 评论(0) 推荐(0) 编辑

一段文字设置多种字体颜色

摘要: //设置不同字体颜色-(void)fuwenbenLabel:(UILabel *)labell FontNumber:(id)font AndRange:(NSRange)range AndColor:(UIColor *)vaColor{NSMutableAttributedString *st... 阅读全文

posted @ 2015-07-23 10:48 yucaijiang 阅读(238) 评论(0) 推荐(0) 编辑

导航