第二部分 实 战第3章 UI基础 1383.1 iOS开发平台限制和方式 1383.2 iOS SDK介绍 141第4章 UI开发与控件 1824.1 窗口与视图 1824.1.1 UIScreen、UIWindow和UIView 1824.1.2 界面旋转和大小处理 1884.2 图片资源的使用 ...
分类:
编程语言 时间:
2015-05-09 23:36:31
阅读次数:
152
强引用、软引用、弱引用、虚引用详解
先说一下垃圾回收机制GabageCollection:
GC是垃圾收集的意思(GabageCollection)。和JAVA一样,ANDROID系统也是由GC来自动回收内存的。android中一个应用的启动,android系统都会为这个应用分配一个dalivk虚拟机,以便这个应用运行在这个独立的虚拟机上,可是一个虚拟机内存大小一般也是限制的(...
分类:
其他好文 时间:
2015-05-09 08:56:29
阅读次数:
273
关于oc中的强弱引用,有需要的朋友可以参考下。强引用和弱引用的广义区别强引用也就是通常所讲的引用,其存亡直接决定了所指对象的存亡。如果不存在指向一个对象的引用,并且此对象不再显示列表中,则此对象会被从内存中释放。弱引用除了不决定对象的存亡外,其他与强引用相同。即使一个对象被持有无数个若引用,只要没有...
分类:
其他好文 时间:
2015-05-08 23:25:05
阅读次数:
187
新建空工程如图添加一个MainStoryboard如图设置启动项为MainStoryboard重写AppDelegate的Window方法public override UIWindow Window { get; set; } 从工具箱拖3个View Controlle...
分类:
移动开发 时间:
2015-05-08 21:53:15
阅读次数:
246
Every iOS app has a window that handles the presentation of the app’s user interface. Although the window provides crucial functionality, most apps ne...
分类:
移动开发 时间:
2015-05-08 14:43:14
阅读次数:
141
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey.....
分类:
其他好文 时间:
2015-05-06 16:51:56
阅读次数:
171
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKey.....
分类:
其他好文 时间:
2015-05-06 16:45:30
阅读次数:
137
If you choose to create a window in Interface Builder, be sure to select the Full Screen at Launch option in the Attributes inspector so that the wind...
本篇态度: simple & stupidweak reference
Weak reference objects, which do not prevent their referents from being made finalizable, finalized, and then reclaimed. Weak references are most often used to imp...
分类:
编程语言 时间:
2015-05-06 09:19:03
阅读次数:
188
本篇宗旨:simple & stupidWeakHashMap (弱引用的哈希表)
Hash table based implementation of the Map interface, with weak keys. An entry in a WeakHashMap will automatically be removed when its key is no longer in or...
分类:
编程语言 时间:
2015-05-06 09:18:34
阅读次数:
141