摘要:
苹果Xcode帮助文档阅读指南iOS开发官方文档汇总 翻译"iPhoneSDK开发"之UIKit使用…iOS中arc的设置与使用 阅读全文
摘要:
http://magicalboy.com/kvc_and_kvo/KVC 与 KVO 是 Objective C 的关键概念,个人认为必须理解的东西,下面是实例讲解。Key-Value Coding (KVC)KVC,即是指NSKeyValueCoding,一个非正式的 Protocol,提供一种... 阅读全文
摘要:
我们经常会遇到在一个应用里面呼出另一个应用的需求,比如在文档里面点击地址,调用safari来打开网页;比如在文件浏览器里面点击某种文件,自动激活一个应用来打开文件。 iOS里面对于这样的需求使用URL来实现,把其他的应用看成一种资源,本质上就是调用系统资源。 我们有两个应用App... 阅读全文
摘要:
//// 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... 阅读全文
摘要:
iOS6与iOS7屏幕适配技巧(转) 阅读全文
摘要:
// 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... 阅读全文