摘要: ViewController加载完成以后,旋转屏幕,会触发以下事件: 注:ShowViewCycle是ViewController的SubView1. -[ViewController willTransitionToTraitCollection:withTransitionCoordinato... 阅读全文
posted @ 2015-06-24 11:34 星泥 阅读(539) 评论(0) 推荐(0) 编辑
摘要: ViewController加载过程(ShowViewCycle是ViewController.view的subView):1. -[ViewController initWithNibName:bundle:] [Line 82] nibNameOrNil:(null), nibBundleOrN... 阅读全文
posted @ 2015-06-24 11:18 星泥 阅读(995) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/linjiqin/archive/2013/11/09/3415440.html传统应用程序设计中所说的依赖一般指“类之间的关系”,那先让我们复习一下类之间的关系:a、实现表示类对接口的实现。UML图中实现使用一条带有空心三角箭头的虚线指向接口,如... 阅读全文
posted @ 2015-05-19 22:51 星泥 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 查看crash日志的步骤:1.找到xcode自带的文symbolicatecrash,路径是/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFramewor... 阅读全文
posted @ 2014-06-04 12:42 星泥 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 概述:NSObject协议组对所有的Object-C下的objects都生效。如果objects遵从该协议,就会被看作是first-class objects(一级类)。另外,遵从该协议的objects的retain,release,autorelease等方法也服从objects的管理和在Foundation中定义的释放方法。一些容器中的对象也可以管理这些objects,比如说NSArray和NSDictionary定义的对象。Cocoa的根类也遵循该协议,所以所有继承NSObjects的objects都有遵循该协议的特性。NSObjects采用的协议:NSObjectautorelease 阅读全文
posted @ 2013-04-23 23:12 星泥 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 代码修改如下:- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{ _window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; _rootViewController = [[RootViewController alloc] initWithNibName:@"RootViewController" bundle:[NS 阅读全文
posted @ 2012-11-30 16:02 星泥 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 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 line of code, you should do that in code.It is has always been an option not to use MainWindow.xib. The 阅读全文
posted @ 2012-11-28 14:20 星泥 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1、UIDeviceOrientationUIDeviceOrientation的定义在UIDevice.h中,它的定义如下:// UIDevice.h...typedef NS_ENUM(NSInteger, UIDeviceOrientation) { UIDeviceOrientationUnknown, UIDeviceOrientationPortrait, // Device oriented vertically, home button on the bottom UIDeviceOrientationPortraitUpsideDown, // Dev... 阅读全文
posted @ 2012-11-01 16:28 星泥 阅读(1782) 评论(0) 推荐(0) 编辑
摘要: 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.htmlhttp://code.google.com/p/apns-python-wrapper/http://urbanairship.com/http://urbanairship.com/docs/getting_started_ios_push 阅读全文
posted @ 2012-08-23 15:27 星泥 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Automatic Reference Countinghttp://clang.llvm.org/docs/AutomaticReferenceCounting.html 阅读全文
posted @ 2012-08-16 14:26 星泥 阅读(133) 评论(0) 推荐(0) 编辑