码迷,mamicode.com
首页 >  
搜索关键字:selector    ( 3894个结果
IOS 编译错误,iOS compile error: no visible @interface for 'CDVCommandDelegateImpl' declares the selector
把Cordova 升级到 3.6.3 版本后,在变异的使用出现了如下问题 The error: /Volumes/local.uhmuhm.net/projectxxx/htdocs/phonegap/src/Projectxxx/platforms/ios/Projectxxx/Classes/MainViewController.m:154:19: error: no visible @i...
分类:移动开发   时间:2014-12-18 10:27:45    阅读次数:175
解决ios7.0 以后自定义导航栏左边按钮靠右的问题
1.自定义按钮 //左按钮         UIButton *leftBtn = [[UIButton alloc]initWithFrame:RectWithPara(-20, 0, 44, 44)];         [leftBtn addTarget:self action:@selector(btnClicked:) forControlEvents:...
分类:移动开发   时间:2014-12-18 10:25:09    阅读次数:233
iOS中 判断对象类型的一些方法
-(BOOL) isKindOf:class 表示:对象是否为class或其父类-(BOOL) isMemberOf:class 表示:对象是否为class-(BOOL) respondsToSelector:selector 表示:对象是否能够响应selector指定的方法-(BOOL) inst...
分类:移动开发   时间:2014-12-18 10:10:05    阅读次数:187
9、网页制作Dreamweaver(jQuery基础:事件)
事件定义:即当HTML中发生某些事(点击、鼠标移过等)的时候调用的方法$(selector).action()事件的触发有两种方法:1、直接将发生的事写在中1 Click me各种事件的写法和作用:Event 函数绑定函数至$(document).ready(function)将函数绑定到文档的就绪...
分类:Web程序   时间:2014-12-17 10:42:05    阅读次数:167
css基础语法和选择器的使用
css语法 selector{ property:value } 例:h1{color:red; font-size:14px} 属性大于1个之后,属性之间用分号隔开 如果值大于1个单词,则需要加上引号 p{font-family:"sans serif";} 选择器分组: h1,h2,h3,h4,h5,h...
分类:Web程序   时间:2014-12-16 22:49:11    阅读次数:276
Android的LinearLayout中 selector背景颜色
把linearLayout 当成按钮使用,我想通过时间触发动态的改变  linear layout 的背景颜色,通过不同的颜色展示不同的状态, 我想通过selector来实现,但是完全没有效果 我看了下其他的解决方法,都说需要添加点击属性时间,但是我的代码已经添加了 我的 LinearLayout  包含了2个小的 LinearLayout  ,没个小LinearLayout  又包含了9个T...
分类:移动开发   时间:2014-12-16 17:16:45    阅读次数:265
iOS疯狂详解之warning:performSelector may cause a leak because its selector is unknown
主要是警告信息,在非ARC项目中没有这个警告。如果是在某一处修改只需要加入下列代码: #pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks" [self.ticketTarget performSelector: self.ticketAction w...
分类:移动开发   时间:2014-12-15 15:31:53    阅读次数:149
写的一个select插件很粗糙;慢慢修改
$.createSelect= function(options){ $(options.selectors).each(function(index, item){ $(item).each(function(index, selector){ if($(...
分类:其他好文   时间:2014-12-14 22:33:18    阅读次数:303
jquery 手册核心函数整理.doc
jQuery核心函数//前者为查找对象,后者为前者查找的范围$(argunment)jQuery([selector,[context]])参数$(selector,[context])selector被查找的字符串context待查找的元素集、文档或jQuery对象Eg----$('p','[cl...
分类:Web程序   时间:2014-12-14 22:29:35    阅读次数:394
OC语言--SEL类型小记
SEL类型1 @selector();函数示例代码:SEL sel = @selector(bark);//把oc的方法名转化为选择器类型SEL//检测判断sel选择器代表的方法,在xiaohong对象所属类中有没有实现if ([xiaohong respondsToSelector:sel]) {...
分类:编程语言   时间:2014-12-14 18:24:18    阅读次数:182
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!