iOS开发
jiangu110
这个作者很懒,什么都没留下…
展开
-
NSAutoreleasePool的release和drain的区别
苹果官方文档In a garbage collected environment, release is a no-op. NSAutoreleasePool therefore provides a drain method that in a reference-counted environment behaves the same as calling release, but w原创 2013-05-07 13:32:11 · 540 阅读 · 0 评论 -
不要在init和dealloc函数中使用属性方法
因为 此时对象的情况还不确定,所以不推荐使用 属性。苹果的文档Don’t Use Accessor Methods in Initializer Methods and deallocThe only places you shouldn’t use accessor methods to set an instance variable are in initializer meth原创 2013-05-27 13:44:12 · 648 阅读 · 0 评论 -
关于viewWillUnload 和 viewDidUnload方法
viewDidUnload方法在iOS6 已经废弃!- (void)viewWillUnloadNS_DEPRECATED_IOS(5_0,6_0);- (void)viewDidUnloadNS_DEPRECATED_IOS(3_0,6_0); 但是为了支持iOS5,还是原来的做法。在iOS6中 无需关心,系统已经都给处理OK了!原创 2013-05-27 17:34:24 · 1098 阅读 · 0 评论 -
iOS静态库工程中使用storyBorad
今天想把一部分功能抽出来做个静态库,这样方便他人使用。遇到了个郁闷的问题,部分界面是使用storyboard实现的,结果一直提示不能发现 XXX.storyboard。 即使放入 bundle也不行。这个问题暂时无解,期待后续的解决!原创 2013-05-10 17:57:28 · 778 阅读 · 0 评论 -
使用GCD
转自 唐巧的技术博客http://blog.devtang.com/blog/2012/02/22/use-gcd/此文讲述比较通俗易懂,且最后的保持后台运行的代码编写比较经典!什么是GCDGrand Central Dispatch (GCD)是Apple开发的一个多核编程的解决方法。该方法在Mac OS X 10.6雪豹中首次推出,并随后被引入到转载 2013-05-09 14:35:14 · 536 阅读 · 0 评论 -
iOS 如何把view转成image
- (UIImage*) imageWithUIView:(UIView*) view{ UIGraphicsBeginImageContext(view.bounds.size); CGContextRef context = UIGraphicsGetCurrentContext();[view.layer renderInContext:context];UIImage*原创 2013-05-07 13:51:40 · 1635 阅读 · 0 评论 -
UIKit 类簇结构图
The UIKit framework提供iOS中的用户界面类。它提供应用程序类,时间处理,绘制模式,windows,views和完善的屏幕触摸设计。包含的类都继承自The Foundation Framework中的NSObject。 直接上图原创 2013-05-07 13:43:22 · 2808 阅读 · 2 评论 -
Urban Airship在iOS中的应用
转自 http://2015.iteye.com/blog/1729153关于推送通知,除了苹果的APNS之外,我们还有很多其他的选择,Urban Airship就是其中之一。 Urban Airship不仅仅做普通的推送通知,他们还发明了一种Rich Push,可以推送更丰富的内容,例如html、音频、视频等。 在你的应用中集成Urban转载 2013-05-07 13:36:39 · 544 阅读 · 0 评论 -
@protected ,@private,@public,@package的使用
@privateThe instance variable is accessible only within the class that declares it.@protectedThe instance variable is accessible within the class that declares it and within classes that inherit原创 2013-05-07 13:34:14 · 1011 阅读 · 0 评论 -
iOS 从零学习路线图
原创 2013-06-06 16:10:38 · 555 阅读 · 0 评论