码迷,mamicode.com
首页 >  
搜索关键字:selector is unknown    ( 6040个结果
Object-C 中的Selector 概念
selector可以叫做选择器,其实指的就是对象的方法,也可以理解为C语言里面的函数指针,在面向对象里面的对应概念。@selector(xxxx)的作用是找到名字为xxxx的方法。一般用于[a performSelector:@selector(b)];就是说去调用a对象的b方法,和[a b];的意...
分类:其他好文   时间:2014-11-18 23:10:09    阅读次数:208
css选择器
http://www.oschina.net/news/57107/30-css-selector-you-should-remeber大 概大家读知道`id`,`class`以及`descendant`选择器,并且整体都在使用它们,那么你正在错误拥有更大级别的灵活性的选择方式。这篇 文章里面提到的...
分类:Web程序   时间:2014-11-18 23:03:19    阅读次数:477
IOS SEL (@selector) 原理及使用总结(一)
SEL 类成员方法的指针可以理解 @selector()就是取类方法的编号,他的行为基本可以等同C语言的中函数指针,只不过C语言中,可以把函数名直接赋给一个函数指针,而Object-C的类不能直接应用函数指针,这样只能做一个@selector语法来取.它的结果是一个SEL类型。这个类型本质是类方法的...
分类:移动开发   时间:2014-11-18 15:54:12    阅读次数:189
关于Android ListView组件中android:drawSelectorOnTop含意
关于Android ListView组件中android:drawSelectorOnTop含义 When set to true, the selector will be drawn over the selected item. Otherwise the selector is drawn....
分类:移动开发   时间:2014-11-17 21:01:11    阅读次数:243
iOS:编译错误[__NSDictionaryM objectAtIndexedSubscript:]: unrecognized selector sent to instance 0xa79e61
这个意思是,__NSDictionaryM  无法将值传到下标索引对象,言简意赅就是数组越界,但是再看看,这是数组吗?不是,所以,遇到这种crash,我这里有两种情况: 1.首先看看你 indexPath.row 用的有没有问题; 2.看看你请求下来的数据类型对不对。 如果还有其他情况,欢迎留言 有的时候,系统并不提示你crash在了哪里,仅仅返回到了main函数,这个时候,点击 ...
分类:移动开发   时间:2014-11-17 17:49:26    阅读次数:290
NSNotificationCenter
注册一个Notification [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receivedNotification:) ...
分类:其他好文   时间:2014-11-17 17:28:15    阅读次数:137
Find Minimum in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).Find the minimum element.You m...
分类:其他好文   时间:2014-11-17 00:21:07    阅读次数:213
修改MF系统的系统名字
打开C:\PK\Solutions\STM32Stamp\platform_selector.h上电,打开 串口助手
分类:其他好文   时间:2014-11-16 13:21:17    阅读次数:165
[Leetcode] Search in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target value t...
分类:其他好文   时间:2014-11-16 07:06:34    阅读次数:174
attr和data
attr()获得属性值通过attr()获得属性时,可以这样$(selector).attr(attrName)。注意,其返回值始终是string型!看下面的例子。通过attr()得到的属性age的值是”31”,属性isstd的值是”false”。另外需要注意的是,attr()对传入的attrName...
分类:其他好文   时间:2014-11-16 00:32:06    阅读次数:339
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!