上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 38 下一页
摘要: 我们在使用ListView的时候,一般都会为ListView添加一个响应事件android.widget.AdapterView.OnItemClickListener。本文主要在于对OnItemClickListener的position和id参数做详细的解释,我相信有些人在这上面走了些弯路。先来看一下官方的文档positionThepositionof the view in the adapter.idThe row id of the item that was clicked.而这两行字并没有解释清楚position和id的区别。另外,我们还有个Adapter的getView方法。p 阅读全文
posted @ 2013-01-30 14:33 Atlas's blog 阅读(29235) 评论(0) 推荐(0) 编辑
摘要: REFERENCES:[北京]-小编 阅读全文
posted @ 2013-01-09 17:03 Atlas's blog 阅读(625) 评论(0) 推荐(0) 编辑
摘要: REFERENCES:https://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/NSNumber_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40003704 阅读全文
posted @ 2013-01-07 16:39 Atlas's blog 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1. 打开终端。2. cd到你项目的路径。3. 输入下面的指令:grep -d recurse “\n” classes| wc -l上面classes是你代码的存放路径,如果你不是默认的Classes路径,改之方法二:find ./ -name "*.m" -exec cat {} \; |wc -lfind ./ -name "*.h" -exec cat {} \; | wc -l两个数相加就是REFERENCES:http://lovebirdegg.iteye.com/blog/858844http://www.iloss.me/2012/03 阅读全文
posted @ 2013-01-07 10:42 Atlas's blog 阅读(370) 评论(0) 推荐(0) 编辑
摘要: FractionMath.h#import <Foundation/Foundation.h>#import "Fraction.h"@interface Fraction (Math)-(Fraction*) add:(Fraction*)f;-(Fraction*) mul:(Fraction*)f;-(Fraction*) div:(Fraction*)f;-(Fraction*) sub:(Fraction*)f;@end(Math)是指的一个category的名字,不能重名注意:定义一个category时,不能指定新的实例变量,即使是空的括号,也会导致 阅读全文
posted @ 2013-01-06 10:23 Atlas's blog 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 在使用Xcode进行iPhone编程时,有时需要参考iPhone SDK的文档,不过每次Control+Click后,Xcode都会试图连接Internet,进行在线读取。有什么方法能够把资料下载到硬盘上进行离线阅读吗?答案是肯定的。首先去Xcode的Preference中的Documentation Sets下,选择所需的docset,这里是iPhone 4.0 Reference Library,右击选择“Get Info…”,找到Feed URL:http://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone4 阅读全文
posted @ 2013-01-05 09:31 Atlas's blog 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 利用Stack倒序List,利用Set是List不能添加重复元素 阅读全文
posted @ 2012-12-25 18:54 Atlas's blog 阅读(839) 评论(0) 推荐(0) 编辑
摘要: 问题:调用TextView.setTextColor(intcolorResourceId)设置light_gray之后,字体颜色改变,设置其为black没有反应。原因:Setsthetextcolorforallthestates(normal,selected,focused)tobethiscolor.由于设置的不是colorResouceId,而是Color对应的,在不相同的情况下就不会改变其值。解决办法:使用nameTextView.setTextColor(Color.parseColor(Constants.COLOR_BLACK));f(viewHolder.nameFollo 阅读全文
posted @ 2012-12-25 18:35 Atlas's blog 阅读(6858) 评论(0) 推荐(0) 编辑
摘要: 某些机型应用图标未改变的问题解决 阅读全文
posted @ 2012-12-25 18:25 Atlas's blog 阅读(233) 评论(0) 推荐(0) 编辑
摘要: REFERENCES:http://www.icodelogic.com/?p=575 阅读全文
posted @ 2012-12-25 12:43 Atlas's blog 阅读(213) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 38 下一页