一些第三方库里对系统库的类加了category,
这时,就需要使用编译参数:-ObjC,这样第三方库中对系统类作的扩展方法才能在工程中使用。
但是使用-Objc后,会产生两个问题:
1、undefined symbols
2、duplicate symbol
undefined symbols
说明工程中没有引入第三方库引用的库。
如果不加-ObjC参数,则...
分类:
其他好文 时间:
2014-08-20 16:25:13
阅读次数:
175
if(undefined){ alert('ok')}else{alert('no')} //noif(""){ alert('ok')}else{alert('no')} //noif(null){ alert('ok')}else{alert('no')}//noif(!null){ alert...
分类:
其他好文 时间:
2014-08-20 16:07:02
阅读次数:
153
1.基本数据类型:Undefined,null,Number,String,Boolean.引用数据类型:保存在内存中的对象.2.JS不允许直接访问内存中的位置,不能直接操作对象的内存空间.所以操作对象时,实际上是操作的对象的引用,而不是实际的对象.3.var num1 = 1;var num2 =...
分类:
Web程序 时间:
2014-08-20 01:22:25
阅读次数:
190
1、错误描述
TypeError:dijit.byId(...) is undefined
(68 out of range 3)
2、错误原因
var gridName = dijit.byId("grid").getValue();
在获取表格中的某列某行中的名称,但是对应的ID改变了,dijit.byId("grid").getValue()这个的ID未...
分类:
其他好文 时间:
2014-08-20 00:01:05
阅读次数:
240
1.当传入的参数个数小于声明的参数个数时,缺少的参数值就是:undefined 类似方法重载varf1=function(p1,p2,p3){switch(arguments.length){case0:alert("无参版本的f1")break;case1:alert("1个参数版本的f1:"+p...
分类:
Web程序 时间:
2014-08-19 20:39:15
阅读次数:
254
首先是关于希腊字符的发音,每个字符对应有一个单词,通过单词则可在词典中听它们的发音,下图给出每个字符的发音,当然英语读音和原始的希腊读音肯定是有区别的,不过还是以英语发音为主吧。关于希腊字符的写法就比较麻烦,有自己的风格就好,不用太强求,下面是是正确的笔顺,来自http://www.founda.....
分类:
其他好文 时间:
2014-08-19 14:28:24
阅读次数:
609
在build项目中出现了The method getTextContent() is undefined for the type Element 的错误, 原因是 本来调用的那个方法应该是jdk下的那个包里的类,而在web项目里却调用了J2EE里的xml-apis.jar下的org.w3c.d...
分类:
其他好文 时间:
2014-08-19 13:03:14
阅读次数:
256
This problem has been driving me crazy, and i can't work out how to fix it... Undefined symbols for architecture armv7: "_deflateEnd", referenced ...
分类:
其他好文 时间:
2014-08-18 21:50:23
阅读次数:
592
var browser={ ie6:function(){ return((window.XMLHttpRequest==undefined)&&(ActiveXObject!=undefined)) }, getWindow:function(){ v...
分类:
其他好文 时间:
2014-08-18 18:30:32
阅读次数:
239
1. mapvar ary = Array(3);ary[0] = 2ary.map(function(elem) { return '1'; });结果是["1", undefined * 2], 因为map只能被初始化过的数组成员调用2. reduce[].reduce(Math.pow); ....
分类:
编程语言 时间:
2014-08-18 15:57:52
阅读次数:
185