01 2013 档案
what is the SEL,id and IMP,Class ,Method?
摘要:1 /* Basic data types for Objective C. 2 Copyright (C) 1993, 1995, 1996, 2004 Free Software Foundation, Inc. 3 4 This file is part of GCC. 5 6 GCC is free software; you can redistrib...
阅读全文
NSArray enumeration performance examined
摘要:public class UDIParser { /// <summary> /// 数据库UDI解析规则数据映射:iKeyID, cDateFormat, cKeyValue, iPos_From, iPos_To, /// </summary> public static System.Coll
阅读全文
Creating a Singleton Instance(各语言单例模式)
摘要:双检锁技术 C# public sealed class Singleton { private static Singleton _instance; private static readonly object LockObject = new object(); // 私有构造函数,防止外部实
阅读全文
iOS面试小题集锦
摘要:1、Object-C有多继承吗?没有的话用什么代替? cocoa 中所有的类都是NSObject 的子类 多继承在这里是用protocol 委托代理 来实现的你不用去考虑繁琐的多继承 ,虚基类的概念.ood的多态特性 在 obj-c 中通过委托来实现. 2、Object-C有私有方法吗?私有变量呢?
阅读全文
如何弹出UIDatePicker最好
摘要:UIDateicker并没有继承UIPickerView,它的宽度只有iphone的宽度,在ipad上直接显示出来非常不协调,所以苹果建议用UIPopoverViewController来显示,所以你可以在里面任意定制。 在iphone中显示需要手动配制动画,因为它只是一个视图。所以你有下面几种方式
阅读全文
How Can i Transfer Xcode 4 Code Snippets from One Machine to Another?
摘要:Ah found it, they are saved at:~/Library/Developer/Xcode/UserData/CodeSnippets/Each one is a plist file. In contrast to Xcode 3 there is now one file per snippet.
阅读全文
Why RootViewController's view is rotated Automatically by System when the app first loaded?
摘要:Your app has aUIWindow, which contains your root view controller's view, which contains the button:UIWindowyour root viewUIButtonWhat you didn't understand is that theUIWindowrotates the user interface by applying a rotation transform to your root. Take a look at the view hierarchy when the
阅读全文
What is the dSYM?
摘要:When you run the Build and Archive command, Xcode 3.2.2 or later fetches your application binary and its associated .dSYM file and saves them in your
阅读全文
Xcode Plugin: Change Code In Running App Without Restart
摘要:Using Injection it is possible to make a change to the implementation of an Objective-C® class and have it take effect as soon as the class is saved without having to restart the application. This feature works for OS X and iOS applications in the simulator and on iOS devices.
阅读全文