C & C++ & Object-C & Java
workhardupc100
爱好C、C ,Linux。目前做ios开发。
展开
-
URL Encoding - CFURLCreateStringByAddingPercentEscapes
转自: http://objcolumnist.com/2009/10/25/escaping-a-url/URL EncodingIf you have tried to send any information using a GET web转载 2011-09-08 12:55:31 · 1421 阅读 · 0 评论 -
Reusable Cells in UITableView
转自: http://www.eduoliveros.com/2009/07/reusable-cells-in-uitableview.htmlIt is a really well known issue that you need to “reuse” the转载 2011-08-18 15:36:53 · 1004 阅读 · 1 评论 -
UISwipeGestureRecognizer ---手指动作
转自:http://o0o0o0o.iteye.com/blog/875333tap是指轻触手势。类似鼠标操作的点击。从iOS 3.2版本开始支持完善的手势api:tap:轻触long press:在一点上长按pinch:两个指头捏或者转载 2011-10-09 15:26:40 · 3396 阅读 · 1 评论 -
cocoa FAQ之控件篇
注:代码摘自苹果官方"UICatalog"源码:1. UIButton UIButton *detailDisclosureButtonType = [[UIButtonbuttonWithType:UIButtonTypeDetailDisclosure]retain]; detailDisclosureB原创 2011-10-09 14:47:37 · 1225 阅读 · 0 评论 -
一个UISrcollView中多个UITextField的滚动处理
摘译自: http://stackoverflow.com/questions/484855/how-programatically-move-a-uiscrollview-to-focus-in-a-control-above-keyboard使用一个实例变量记录视图在为键盘调整之前的位置,以用于当UITextField返回时恢复到之前的状态。//header@interface翻译 2012-05-08 18:44:34 · 1485 阅读 · 0 评论 -
如果判断NSScrollView滚动到了最后
转自:http://www.codexsoftware.co.uk/blog/computers/programming/how-to-determine-if-an-nstextview-is-scrolled-to-the-end/boolscrollToEnd = YES; idscrollView = (NSScrollView*转载 2012-09-04 13:54:37 · 1012 阅读 · 0 评论 -
mac开发中使用SDWebImage
SDWebImage是iOS开发中非常好用的一个异步加载图片的第三方库,mac开发中如果要使用这个库,需要在UIImage和NSImage、UIImageView和NSImageView间做些转换。 转换代码如下(代码摘自:http://code.google.com/p/permping/source/browse/trunk/ios/Permping/Classes/Libs/SDW原创 2012-09-11 23:22:53 · 2429 阅读 · 0 评论 -
《简明Python教程》读书笔记
简明 Python 教程:http://sebug.net/paper/python/1. 数据类型: 元组: () 列表: [] list 字典: {} dict 集合: () set 列表、元组和字符串都是序列。序列的两个主要特点是索引操作符和切片操作原创 2012-10-24 18:10:21 · 689 阅读 · 0 评论