以Button为例:一般Button有2个状态,按下和正常状态1.在res下新建drawable文件夹,用以存放自己的Drawable文件2.在drawable文件夹下新建按下和正常状态shape文件(是图片资源,则略过此步骤)3.新建Button背景Selector文件4.为Button的back...
分类:
移动开发 时间:
2014-07-31 12:09:26
阅读次数:
250
最近的工作需要将工程打包成静态库文件,然后提供给别人使用。在工程中有引用MBProgressHUD,在打包出静态库文件后,写了个Demo,引用了其中的一段代码来显示MBProgressHUD,在iOS 6的设备上跑时却崩溃了,错误提示为:“-[__NSCFString sizeWithAttributes:]: unrecognized selector sent to XXXXXX”...
分类:
其他好文 时间:
2014-07-30 23:56:25
阅读次数:
276
什么是JQuery的选择器呢,详见JQuery中的Selector: http://docs.jquery.com/Selectors比如 $("div:contains('John')").css("text-decoration", "underline");的contains选择器等等JQue...
分类:
Web程序 时间:
2014-07-30 14:42:53
阅读次数:
325
android shape的使用
shape用于设定形状,可以在selector,layout等里面使用,有6个子标签,各属性如下:
xml version="1.0" encoding="utf-8"?>
shape xmlns:android="http://schemas.android.com/apk/res/android" >
圆角 -->
...
分类:
移动开发 时间:
2014-07-30 10:03:33
阅读次数:
244
获取指定元素的兄弟元素时,能够使用adjacent sibling combinator (+),当中+的两側内容都是selector expression.假设要获取下例中全部的h1的直接兄弟元素h2 Main title Section title Some content.....
分类:
Web程序 时间:
2014-07-29 17:38:32
阅读次数:
264
崩溃原因是由于:获取JSON数据后存放在默认的NSMutableArry里,NSMutableArry是存放id类型的,uiTableViewCellMakeMoneyCustomCell.uiLabelActiveCountPoint.text=[nsMutableArryAllheActives...
分类:
其他好文 时间:
2014-07-29 16:59:52
阅读次数:
192
Jquery的循环函数each()的继续和跳出并不像其他语言采用大众的continue和break,而是采用return true or retrun false来判定是否继续执行循环体。 $(‘selector‘).each(function(){ ????your code.....; ???...
分类:
Web程序 时间:
2014-07-29 16:23:09
阅读次数:
362
("#父窗口元素ID",window.parent.document); 对应javascript版本为window.parent.document.getElementByIdx_x("父窗口元素ID");取父窗口的元素方法:$(selector, window.parent.document);...
分类:
Web程序 时间:
2014-07-28 15:29:53
阅读次数:
223
在viewdidiload方法中除了[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyBoardWillShow:) name:UIKeyboardWillShowNotification obj...
分类:
其他好文 时间:
2014-07-28 13:51:10
阅读次数:
298
UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapOnce)];//定义一个手势[tap setNumberOfTouchesRequired:...
分类:
其他好文 时间:
2014-07-27 22:01:40
阅读次数:
202