『iOS/Obj-C』Note Of 8-day Obj-C/iOS foundation course
来源:互联网 发布:如何利用网络招聘 编辑:程序博客网 时间:2024/04/26 05:42
Note Of 8-day Obj-C/iOS foundation course
1. rewrite method:init
- (instancetype)init{self = [super init];if (self) {//self.name = @"RainyTunes";}return self;}
2. nonatomic,atomic,assign,retain,copy
nonatomic -> without thread lock
3. Refering Counting(引用计数)
reference counting is a technique of storing the number of references, pointers, or handles to a resource such as an object, block of memory, disk space or other resource.
It may also refer, more specifically, to a garbage collection algorithm that uses these reference counts to deallocate objects which are no longer referenced.
4. strong,weak
The difference is that an object will be deallocated as soon as there are no strong pointers to it. Even if weak pointers point to it, once the last strong pointer is gone, the object
will be deallocated, and all remaining weak pointers will be zeroed out.
5. method: description
//definitely the sameNSLog(@"%@",[myStr description]);NSLog(@"%@",myStr);
6. Archive
Archive(归档) = save = serialization
7. UIWindow
The UIWindow class defines an object known as a window that manages and coordinates the views an app displays on a device screen. Unless an app can display content on an external device screen, an app hasonly one window.
How to init a window:
The two principal functions of a window are to provide an area for displaying its views and to distribute events to the views. To change the content your app displays, you can change the window’s root view; you don’t create a new window.
A window belongs to a level—typically, UIWindowLevelNormal—that represents where it sits on the z-axis relative to other windows. For example, a system alert window appears above normal app windows.
- 『iOS/Obj-C』Note Of 8-day Obj-C/iOS foundation course
- iOS Obj-C
- 『iOS/Obj-C』V2EX iOS 客户端源码读书笔记
- iOS Obj-C General Info
- IOS obj-c、c、c++混编
- IOS 收藏 obj-c 编码规范
- iOS 的 c++,c,obj-C,swift 混用 (转载)
- !!!Obj-c on Mac --- Chapter 8 Foundation Kit
- 『iOS/Obj-C』The difference among int, NSInteger, NSUInteger and NSNumber
- ios--c DAY-8
- IOS第七天——Obj-C中的继承
- IOS第十天——Obj-C的属性
- obj-c iOS 数组存入程序文件 arrayWithContentsOfFile
- IOS第十天——Obj-C的属性
- IOS第十天——Obj-C的属性
- iOS项目关于Other Linker Flags添加-Obj-C等
- ios obj-c KVO模式的介绍和使用
- ios 删除线的obj-c实现和swift实现
- 我在武汉新东方上过的8个老师
- python--有关函数的问题
- 黑马程序员——Java基础04(数组)
- UVALive - 4043 Ants (二分图最大权匹配)
- SDK学院--棱镜SDK:棱镜SDK 二次验证方案
- 『iOS/Obj-C』Note Of 8-day Obj-C/iOS foundation course
- JAVA基础——IO流知识点完整总结版
- 股票成交价格确定方法详解
- Unity3D面试题整合
- java,maven,svn,idea环境配置
- 排序算法总结
- SpringMVC返回页面数据
- 文件中的字符编码的层次
- HDFS优缺点