上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: -(id)dequeueReusableCellWithIdentifier:(NSString*)identifier;-(id)dequeueReusableCellWithIdentifier:(NSString*)identifierforIndexPath:(NSIndexPath*)indexPathNS_AVAILABLE_IOS(6_0);//newer第一个:-(id)dequeueReusableCellWithIdentifier:(NSString*)identifier;在初始化时候用:staticNSString*CellIdentifier=@"Cell 阅读全文
posted @ 2013-05-24 13:14 酱酱爱 阅读(405) 评论(0) 推荐(0) 编辑
摘要: UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0,0,0,0)]; //设置自动行数与字符换行,为0标示无限制 [label setNumberOfLines:0]; label.lineBreakMode = NSLineBreakByWordWrapping;//换行方式 NSString *strTest = @"用中问和英文 混合测试! just test, good luck!! 看看行不行"; UIFont *font = [UIFont fontWithName:@"Ari... 阅读全文
posted @ 2013-05-23 14:21 酱酱爱 阅读(6949) 评论(0) 推荐(0) 编辑
摘要: http://www.sourcegear.com/diffmerge/index.html听说是免费的,没用过 阅读全文
posted @ 2013-05-23 11:38 酱酱爱 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 把工程build setting 中的Treat Warnings as Errors设置为YES。这是个十分好的设置,所以,以后的项目中都应该用这个设置项 阅读全文
posted @ 2013-05-22 11:26 酱酱爱 阅读(1413) 评论(0) 推荐(0) 编辑
摘要: 在关闭ARC情况下对NSMutableArray存储内存分析。一:测试环境构建1:创建一个简单视窗工程 在AppDelegate.m- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for cus... 阅读全文
posted @ 2013-05-21 17:25 酱酱爱 阅读(4488) 评论(0) 推荐(0) 编辑
摘要: 窗口大小获取: CGRect screenBounds = [ [UIScreenmainScreen]bounds];//返回的是带有状态栏的RectCGRect rect = [ [UIScreenmainScreen]applicationFrame];//不包含状态栏的RectUIImageView:一 :圆角以及自适应图片大小 UIImage* image = [UIImage imageNamed:@"image.png"]; UIImageView* imageView = [[[UIImageView alloc] initWithImage:image] 阅读全文
posted @ 2013-05-20 10:42 酱酱爱 阅读(41470) 评论(0) 推荐(0) 编辑
摘要: NSString *homePath = NSHomeDirectory();NSString *filePath = [homePath stringByAppendingPathComponent:@"array.archiver"];NSMutableData *mutableData = [NSMutableData data];NSKeyedArchiver *archive = [[NSKeyedArchiver alloc] initForWritingWithMutableData:mutableData];[archive encodeObject:@&q 阅读全文
posted @ 2013-05-17 16:32 酱酱爱 阅读(259) 评论(0) 推荐(0) 编辑
摘要: UIDatePicker 时间选择器NSDate *currentTime = [NSDate date]; datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 100, 320, 216)]; // [datePicker setTimeZone:[NSTimeZone defaultTimeZone]]; // [datePicker setTimeZone:[NSTimeZone timeZoneWithName:@"GMT+8"]]; // 设置当前显示 [datePi... 阅读全文
posted @ 2013-05-17 13:18 酱酱爱 阅读(868) 评论(0) 推荐(0) 编辑
摘要: UIActivityIndicatorView活动指示器 是继承自UIView,所以嘛。。。不多说什么了!你懂的。一 创建 : 不多说..二:属性风格UIActivityIndicatorViewStyleWhiteLarge 大型白色指示器;UIActivityIndicatorViewStyleWhite 标准尺寸白色指示器 ;UIActivityIndicatorViewStyleGray 灰色指示器,用于白色背景 三hidesWhenStoped 停止动画后是否自动隐藏,默认为YES.四 开启动画:startAnimating ; 停止动画stopAnimating五:网络活动指示器当 阅读全文
posted @ 2013-05-16 10:04 酱酱爱 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 建个空的iOS工程- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.window.backgroundColor = [... 阅读全文
posted @ 2013-05-15 15:54 酱酱爱 阅读(357) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页