码迷,mamicode.com
首页 >  
搜索关键字:self    ( 14215个结果
android binder 机制二(client和普通server)
在讲它们之间的通信之前,我们先以MediaServer为例看看普通Server进程都在干些什么。 int main() { …… // 获得ProcessState实例 sp<ProcessState> proc(ProcessState::self()); // 得到ServiceManager的 ...
分类:移动开发   时间:2017-04-14 09:35:12    阅读次数:317
[cocos2d]格式化获取当前layer的控件名
当前有 {"Image_box1"}, {"Image_box2"}, {"Image_box3"}, {"Image_box4"}, for i=1,4 do self["Image_box"..i] end ...
分类:其他好文   时间:2017-04-13 21:27:46    阅读次数:117
Learn_Day15 面向对象 ==>> 进阶
通过类访问:静态字段,静态方法,类方法 通过类的对象访问:普通字段,类的方法 字段:静态字段(每个对象都有相同的数据),普通字段(每个字段都有不同的数据) 方法:静态方法(无需使用对象封装的内容,相当于函数),普通方法(使用对象中的数据),类方法 属性(特性):普通特性 快速判断:有self用对象执 ...
分类:其他好文   时间:2017-04-13 19:20:22    阅读次数:191
python特殊函数 __call__()
__call__ 在Python中,函数其实是一个对象: >>> f = abs >>> f.__name__ 'abs' >>> f(-123) 123 由于 f 可以被调用,所以,f 被称为可调用对象。 所有的函数都是可调用对象。 一个类实例也可以变成一个可调用对象,只需要实现一个特殊方法__c ...
分类:编程语言   时间:2017-04-13 17:05:56    阅读次数:187
【python】初识python
【类1:类】 【类2:继承】 ...
分类:编程语言   时间:2017-04-13 09:05:50    阅读次数:189
009.Palindrome Number
问题链接:https://leetcode.com/problems/palindrome-number/#/description Question:Determine whether an integer is a palindrome. Do this without extra space. ...
分类:其他好文   时间:2017-04-12 23:22:49    阅读次数:228
exc_bad_instruction(code=EXC_I386_INVOP,subcode=0x0) 错误
对象存储异常 对象存储要遵守NSCoding协议 #import "EmotionModel.h" @interface EmotionModel()<NSCoding> @end @implementation EmotionModel /** *当一个对象要归档进沙盒中时,就会调用这个方法 *目 ...
分类:其他好文   时间:2017-04-12 23:12:45    阅读次数:295
django多对多
创建多对多 方式一:自定义关系表 方式二:自动创建表关系 ...
分类:其他好文   时间:2017-04-12 18:31:07    阅读次数:152
UINavigationController navigationBar 隐藏方法
// 隐藏navigationBar 没有卡顿 [self.navigationController setNavigationBarHidden:YES animated:YES]; // 隐藏navigationBar 切换页面时,有卡顿// self.navigationController. ...
分类:其他好文   时间:2017-04-12 16:52:26    阅读次数:134
UIActivityIndicatorView
//声明对象 @property (nonatomic,strong) UIActivityIndicatorView *activityindicator; self.activityindicator = [[UIActivityIndicatorViewalloc] initWithFrame ...
分类:其他好文   时间:2017-04-12 14:59:57    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!