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

浙公网安备 33010602011771号