自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 tableviewcell重绘

NSString *CellIdentifier =[NSString stringWithFormat:@"Cell-%d-%d",indexPath.section,indexPath.row]; // [NSString stringWithFormat:@"cell%@", code];     UITableViewCell *cell = [tableView dequeueRe

2013-11-27 16:20:29 439

原创 UItableviewCell 关于Index

NSString *textString ;     NSIndexPath *indexPath=[NSIndexPath indexPathForRow:0 inSection:2];     MemInforCell *cell=(MemInforCell *)[self.infoTable cellForRowAtIndexPath:indexPath];     NSArray *

2013-11-25 15:08:29 450

原创 NSUSerDefaults保存数据类型

NSUserDefaults可以存储的数据类型包括: NSDataNSStringNSNumberNSDateNSArrayNSDictionary 如果你想保存其他类型,如UIImage,你应该进行编码(即archive),或者将它转换为NSData、NSNumber或者NSString。

2013-11-05 16:22:23 924

原创 UILabel自动换行

1  CGSize ConstrainedToSize = CGSizeMake(__MainScreen_Width-28, MAXFLOAT);     CGSize newSize = [giftDescribeLabel.text sizeWithFont:giftDescribeLabel.font                             constraine

2013-11-05 16:20:14 565

转载 ios判断UITextView是否为空

判断NSString字符串为空几乎是每一个开发人员肯定会碰到的问题,对于绝大多数人最先闪过大脑的是下面的方法 if([yourTextString isEqualToString:@""]) 但是很遗憾,这样的判断往往经常会出现失败的情况,造成很多莫名其妙的bug,例如如果用这种方法判断UITextField是否为空便会出现问题 [yourTextField.text isEqu

2013-11-05 16:17:17 2130

原创 CSV格式文件解析

+ (NSArray *)arrayWithContentOfSimpleCsvFile:(NSString *)path {     NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];          NSString * content = [[NSString alloc] initWithConten

2013-11-05 16:15:15 725

原创 关于 Drawrect方法的使用

1. 必须在UIView的类里面实现   - (void)drawRect:(CGRect)rect 方法#import "MyView.h"@interface ViewController : UIViewController{    MyView *drawView;}@end @interface MyView : UIView @end #import "MyView.h

2013-11-05 16:10:06 3805

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除