01 2014 档案

摘要://// RootViewController.m// MyTimerDemo// Created by huluo on 1/21/14.// Copyright (c) 2014 bluemobi.cn. All rights reserved.//#import "RootViewCo... 阅读全文
posted @ 2014-01-22 17:57 huluo666 阅读(193) 评论(0) 推荐(0)
摘要:imageNamed 与 imageWithContentsOfFile的区别(来自http://www.cnblogs.com/pengyingh/articles/2355033.html)如题,是不是大家为了方便都这样加载图片啊myImage = [UIImage imageNamed:@"i... 阅读全文
posted @ 2014-01-20 13:49 huluo666 阅读(165) 评论(0) 推荐(0)
摘要:iOS6与iOS7屏幕适配技巧(转) 阅读全文
posted @ 2014-01-17 16:33 huluo666 阅读(115) 评论(0) 推荐(0)
摘要:// CustomField.h#import @interface CustomField : UITextField@end// CustomField.m#import "CustomField.h"@implementation CustomField- (id)initWithFram... 阅读全文
posted @ 2014-01-17 16:01 huluo666 阅读(200) 评论(0) 推荐(0)
摘要://跳转- ( void)present:( id )sender { NSLog ( @"the button,is clicked …" ); // 创建准备跳转的 UIViewController ModalViewController *modalViewControlle... 阅读全文
posted @ 2014-01-15 18:51 huluo666 阅读(132) 评论(0) 推荐(0)
摘要:UIView *loadView = [[UIControl alloc]initWithFrame:CGRectMake(0,0,320,480)]; loadView.backgroundColor = [UIColor clearColor]; [(UIControl *)loadV... 阅读全文
posted @ 2014-01-15 13:39 huluo666 阅读(100) 评论(0) 推荐(0)
摘要:NSArray *arrData = @[@"1",@"2",@"3",@"4"]; NSArray *arrKey = @[@"A",@"B",@"C",@"D"]; NSMutableDictionary *dic = [NSMutableDictionary diction... 阅读全文
posted @ 2014-01-13 23:17 huluo666 阅读(7369) 评论(0) 推荐(0)
摘要:我们都知道iOS中采用引用计数的技术来管理内存,当一个对象没有任何一个地方引用的时候会自动释放,此时的retainCount为0,而且提供了一个-(NSInteger)retainCount的方法来获得对象当前的持有数。 这个概念清楚而明确,不过,让我们看两段代码: NSNumber *number = [NSNumber numberWithInt:1]; ... 阅读全文
posted @ 2014-01-13 22:21 huluo666 阅读(227) 评论(0) 推荐(0)
摘要:概述: 在iOS6之前的版本中,通常使用 shouldAutorotateToInterfaceOrientation 来单独控制某个UIViewController的方向,需要哪个viewController支持旋转,只需要重写shouldAutorotateToInterfaceOrientation方法。 但是iOS 6里屏幕旋转改变了很多,之前的 shouldAutorotate... 阅读全文
posted @ 2014-01-10 17:04 huluo666 阅读(219) 评论(0) 推荐(0)