自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 收藏
  • 关注

转载 屏幕旋转,ViewController触发事件

ViewController加载完成以后,旋转屏幕,会触发以下事件:  注:ShowViewCycle是ViewController的SubView1. -[ViewController willTransitionToTraitCollection:withTransitionCoordinator:] [Line 76] newCollection:<UITraitC...

2015-06-24 11:34:00 278

转载 ViewController启动加载过程

ViewController加载过程(ShowViewCycle是ViewController.view的subView):1. -[ViewController initWithNibName:bundle:] [Line 82] nibNameOrNil:(null), nibBundleOrNil:(null)   ViewController初始化方法:    ...

2015-06-24 11:18:00 151

转载 类之间的关系【转载】

转自:http://www.cnblogs.com/linjiqin/archive/2013/11/09/3415440.html传统应用程序设计中所说的依赖一般指“类之间的关系”,那先让我们复习一下类之间的关系:a、实现表示类对接口的实现。UML图中实现使用一条带有空心三角箭头的虚线指向接口,如下:b、泛化表示类与类之间的继承关系、接口与接口之间的继承关系。UM...

2015-05-19 22:51:00 128

转载 使用 symbolicatecrash转化crash日志

查看crash日志的步骤:1.找到xcode自带的文symbolicatecrash,路径是/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resou...

2014-06-04 12:42:00 87

转载 NSobject官方介绍(转)

概述:NSObject协议组对所有的Object-C下的objects都生效。如果objects遵从该协议,就会被看作是first-class objects(一级类)。另外,遵从该协议的objects的retain,release,autorelease等方法也服从objects的管理和在Foundation中定义的释放方法。一些容器中的对象也可以管理这些objects,比...

2013-04-23 23:12:00 108

转载 UINavigationBar添加背景图片

代码修改如下:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] b...

2012-11-30 16:02:00 206

转载 Is a MainWindow.xib truly needed in iOS application?

I think the reason why it's now absent is that creating a window programmatically is much more efficient than opening a xib file and unarchiving the objects. Generally, if you can do it in one li...

2012-11-28 14:20:00 78

转载 UIDeviceOrientation & UIInterfaceOrientation & UIInterfaceOrientationMask

1、UIDeviceOrientationUIDeviceOrientation的定义在UIDevice.h中,它的定义如下:// UIDevice.h...typedef NS_ENUM(NSInteger, UIDeviceOrientation) { UIDeviceOrientationUnknown, UIDeviceOrientatio...

2012-11-01 16:28:00 354

转载 Push Notifications

push notification使用:参考资源:http://tiny4cocoa.com/thread-1406-1-1.htmlhttp://bbs.ldci.com.cn/read.php?tid-19971.htmlhttp://www.cocoachina.com/bbs/read.php?tid-3770-keyword-apns.htmlhtt...

2012-08-23 15:27:00 83

转载 Automatic Reference Counting

Automatic Reference Countinghttp://clang.llvm.org/docs/AutomaticReferenceCounting.html转载于:https://www.cnblogs.com/StarMud/articles/2642263.html

2012-08-16 14:26:00 47

转载 限制UITextField输入长度

如果要限制UITextField输入长度最长不超过kMaxLength,那么需要实现做以下操作:1、实现UITextFieldDelegate协议;2、实现textField:shouldChangeCharactersInRange:replacementString:方法;- (BOOL)textField:(UITextField *)textField shouldC...

2012-07-30 17:33:00 103

转载 软件开发工程师工作总结(转)

1、分享第一条经验:“学历代表过去、能力代表现在、学习力代表未来。”其实这是一个来自国外教育领域的一个研究结果。相信工作过几年、十几年的朋友对这个道理有些体会吧。但我相信这一点也很重要:“重要的道理明白太晚将抱憾终生!”所以放在每一条,让刚刚毕业的朋友们早点看到哈!2、一定要确定自己的发展方向,并为此目的制定可行的计划。不要说什么,“我刚毕业,还不知道将来可能做什么?”,“跟着感觉走...

2012-07-12 09:25:00 406

转载 Sizes of iPhone UI Elements

ElementSize (in points)Window (including status bar)320 x 480 ptsStatus Bar(How to hide the status bar)20 ptsView inside window(visible status bar)320 x 46...

2012-06-25 16:59:00 77

转载 AT&T 汇编 (AT&T ASM) 参考

AT&TASM开发一个OS,尽管绝大部分代码只需要用C/C++等高级语言就可以了,但至少和硬件相关部分的代码需要使用汇编语言,另外,由于启动部分的代码有大小限制,使用精练的汇编可以缩小目标代码的尺寸。另外,对于某些需要被经常调用的代码,使用汇编可以提高性能。所以我们必须了解汇编语言,即使你有可能并不喜欢它。如果你是计算机专业的话,在大学里你应...

2012-06-22 14:16:00 204

转载 什么是Cocoa?

在Mac OS X操作系统上,Cocoa和Carbon及Java一样,是一种应用程序环境。它由一组面向对象的软件库和一个运行环境组成,它的集成开发环境和其它应用程序环境相同。本章将在这个定义的基础上进行扩展,描述Cocoa的目标、能力、和物理形式。作为一个开发者,阅读这个功能描述是理解Cocoa的第一步。本部分包含如下内容:Cocoa的环境Cocoa应用程序的特性开发环境Co...

2012-06-21 09:29:00 626

转载 IRQ

IRQ目录简介用途编辑本段简介  IRQ全称为Interrupt Request,即是“中断请求”的意思(以下使用IRQ称呼)。IRQ的作用就是在我们所用的电脑中,执行硬件中断请求的动作,比如我们需要读取硬盘中的一段数据时,当数据读取完毕,硬盘就通过IRQ来通知系统,相应的数据已经写到指定的内存中了。在每台电脑的系统中,是由一个中断控制器8259或是8...

2012-06-18 17:25:00 317

转载 Working with Directories on iOS 4 (iPhone)

It is sometimes easy to forget that iOS is an operating system much like that running on many other computers today. Given this fact, it should come as no surprise that iOS has a file system much...

2012-06-14 10:06:00 145

转载 TIOBE Programming Community Index for June 2012

June Headline: Haskell is rapidly approaching the top 20Last month we asked ourselves the question what language could become the next big new programming language. We suggested several candida...

2012-06-12 09:36:00 210

转载 iPhone OS Memory Warnings. What Do The Different Levels Mean?

Regarding the black art of managing memory on iPhone OS devices: what do the different levels of memory warning mean. Level 1? Level 2? Does the dial go to 11?Context: After an extensive memory...

2012-06-05 09:13:00 97

转载 Xcode Build版本号自增

如何使得XCode的Build版本号自增的问题一直困扰着我,今天通过GOOGLE终于找到,分享给大家。注:本人使用的XCode版本号为4.3.21、进入“Tagerts”,打开“Build Phases”;2、选择“Add Build Phases”,选择“Add Run Script”;3、在Shell中输入:#!/bin/bash buildNu...

2012-06-01 15:12:00 288

转载 5W2H分析法

5W2H分析法又称七何分析法5W2H分析法简介  5W2H法是第二世界大战中美国陆军兵器修理部首创。简单、方便,易于理解、使用,富有启发意义,广泛用于企业管理和技术活动,对于决策和执行性的活动措施也非常有帮助,也有助于弥补考虑问题的疏漏。(1) WHY——为什么?为什么要这么做?理由何在?原因是什么?(2) WHAT——是什么?目的是什么?做什么工作?(3) WHO——谁...

2012-05-28 00:00:00 103

转载 Where is MainWindow.xib in Xcode 4.2 ?

In Xcode 4.2 the MainWindow.xib is not included for some of the project templates. Its means now we have to generate GUI elements by code or we can reconstruct the MainWindow.xib in project. I am...

2012-05-12 15:08:00 121

转载 UIViewAnimation动画与Core Animation的CATransition类动画

-(void)leftClick{[UIViewbeginAnimations:nilcontext:nil];//displaymode,slowatbeginningandend[UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];...

2012-05-10 10:14:00 73

转载 介绍 JSON

1、JSON官网介绍http://www.json.org/json-zh.htmlJSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。 易于人阅读和编写。同时也易于机器解析和生成。 它基于JavaScript Programming Language,Standard ECMA-262 3rd Edition - Dec...

2012-04-10 09:57:00 82

转载 Understanding the Objective-C Runtime

Understanding the Objective-C RuntimeThe Objective-C Runtime is one of the overlooked features of Objective-C initially when people are generally introduced to Cocoa/Objective-C. The rea...

2012-04-03 12:43:00 134

转载 Task、Thread、Process、Program

Before entering into a discussion about concurrency, it is necessary to define some relevant terminology to prevent confusion. Developers who are more familiar with UNIX systems or older Mac OS X...

2012-04-02 16:15:00 165

转载 学习《Beginning iPhone 4 Development 》第6章关于View Switcher这个例子的问题

我在学习《Beginning iPhone 4 Development Exploring the iOS SDK》(中文版的名称为《iPhone 4与iPad开发基础教程》)这本书 有一个关于第6章View Switcher这个例子中 - (IBAction)switchViews:(id)sender 这个函数中处理动画flip效果的一个问题 请看代码 - (IBAction)swi...

2012-04-01 22:12:00 77

转载 Objective-C内存管理方式

在Objective-C或者说Cocoa里面,有三种内存的管理方式。  第一种,叫做“Garbage Collection”。这种方式和java类似,在你的程序的执行过程中,始终有一个高人在背后准确地帮你收拾垃圾,你不用考虑它什么时候开始工作,怎样工作。你只需要明白,我申请了一段内存空间,当我不再使用从而这段内存成为垃圾的时候,我就彻底的把它忘记掉,反正那个高人会帮我收拾垃圾。遗憾的是,...

2012-03-09 18:55:00 90

转载 NSAutoreleasePool

现有的Cocoa框架中,自动缓冲池可以使用如下的格式:@autoreleasepool { // Code benefitting from a local autorelease pool.}优点:  1、不用管是否使用Automatic Reference Countin...

2012-03-09 15:48:00 44

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除