上一页 1 ··· 4 5 6 7 8
摘要: 苹果Xcode帮助文档阅读指南iOS开发官方文档汇总 翻译"iPhoneSDK开发"之UIKit使用…iOS中arc的设置与使用 阅读全文
posted @ 2014-04-04 20:22 huluo666 阅读(95) 评论(0) 推荐(0) 编辑
摘要: http://magicalboy.com/kvc_and_kvo/KVC 与 KVO 是 Objective C 的关键概念,个人认为必须理解的东西,下面是实例讲解。Key-Value Coding (KVC)KVC,即是指NSKeyValueCoding,一个非正式的 Protocol,提供一种... 阅读全文
posted @ 2014-03-24 09:42 huluo666 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 我们经常会遇到在一个应用里面呼出另一个应用的需求,比如在文档里面点击地址,调用safari来打开网页;比如在文件浏览器里面点击某种文件,自动激活一个应用来打开文件。 iOS里面对于这样的需求使用URL来实现,把其他的应用看成一种资源,本质上就是调用系统资源。 我们有两个应用App... 阅读全文
posted @ 2014-02-07 17:48 huluo666 阅读(155) 评论(0) 推荐(0) 编辑
摘要: //// 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 阅读(165) 评论(0) 推荐(0) 编辑
摘要: imageNamed 与 imageWithContentsOfFile的区别(来自http://www.cnblogs.com/pengyingh/articles/2355033.html)如题,是不是大家为了方便都这样加载图片啊myImage = [UIImage imageNamed:@"i... 阅读全文
posted @ 2014-01-20 13:49 huluo666 阅读(157) 评论(0) 推荐(0) 编辑
摘要: iOS6与iOS7屏幕适配技巧(转) 阅读全文
posted @ 2014-01-17 16:33 huluo666 阅读(108) 评论(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 阅读(191) 评论(0) 推荐(0) 编辑
摘要: //跳转- ( void)present:( id )sender { NSLog ( @"the button,is clicked …" ); // 创建准备跳转的 UIViewController ModalViewController *modalViewControlle... 阅读全文
posted @ 2014-01-15 18:51 huluo666 阅读(123) 评论(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 阅读(96) 评论(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 阅读(7361) 评论(0) 推荐(0) 编辑
摘要: 我们都知道iOS中采用引用计数的技术来管理内存,当一个对象没有任何一个地方引用的时候会自动释放,此时的retainCount为0,而且提供了一个-(NSInteger)retainCount的方法来获得对象当前的持有数。 这个概念清楚而明确,不过,让我们看两段代码: NSNumber *number = [NSNumber numberWithInt:1]; ... 阅读全文
posted @ 2014-01-13 22:21 huluo666 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 概述: 在iOS6之前的版本中,通常使用 shouldAutorotateToInterfaceOrientation 来单独控制某个UIViewController的方向,需要哪个viewController支持旋转,只需要重写shouldAutorotateToInterfaceOrientation方法。 但是iOS 6里屏幕旋转改变了很多,之前的 shouldAutorotate... 阅读全文
posted @ 2014-01-10 17:04 huluo666 阅读(195) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8