Ray's playground

 
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 56 下一页

2011年1月7日

Let's Get Started(Chapter 2 of Cocoa Programming for Mac OS X)

摘要: [代码][代码] 阅读全文

posted @ 2011-01-07 10:35 Ray Z 阅读(191) 评论(0) 推荐(0) 编辑

2010年12月31日

Gestures and Touches(Chapter 8 of The iPhone™ Developer’s Cookbook)

摘要: Touches have life cycles. Each touch can pass through any of five phases that represent theprogress of the touch within an interface. These phases are as follows:  UITouchPhaseBegan—Starts when users touch the screen.  UITouchPhaseMoved—Means a touch has moved on the screen.  UITouchPhaseStationary— 阅读全文

posted @ 2010-12-31 13:59 Ray Z 阅读(219) 评论(0) 推荐(0) 编辑

2010年12月28日

Assembling Views and Animations(Chapter 6 of The iPhone™ Developer’s Cookbook)

摘要: Views store arrays of their children. Retrieve this array by calling [aView subviews].Onscreen, the child views are always drawn after the parent, in the order that they appearin the subviews array.These views draw in order from back to front, and the subviewsarray mirrors that drawing pattern.Views 阅读全文

posted @ 2010-12-28 18:32 Ray Z 阅读(109) 评论(0) 推荐(0) 编辑

2010年12月27日

Working with view controllers(Chapter 5 of The iPhone™ Developer’s Cookbook)

摘要: [代码] 阅读全文

posted @ 2010-12-27 18:46 Ray Z 阅读(226) 评论(0) 推荐(0) 编辑

Designing Interfaces(Chapter 4 of The iPhone™ Developer’s Cookbook)

摘要: One of the great things about Cocoa Touch is that you don’t have to program entirely byhand or entirely using Interface Builder.You can leverage IB’s visual layout and combine itwith Xcode-based programming for a better, hybrid solution. 阅读全文

posted @ 2010-12-27 18:39 Ray Z 阅读(146) 评论(0) 推荐(0) 编辑

2010年12月25日

Templates in depth(Chapter 3 of Thinking in C++ Vol 2)

摘要: StringConvCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--#ifndefSTRINGCONV_H#defineSTRINGCONV_H#includestring#includesstreamtemplatetypenameTTfromString(conststd::string&s){std::istringstreamis(s);Tt;ist;returnt;}templatetypenameTstd::stri 阅读全文

posted @ 2010-12-25 17:45 Ray Z 阅读(228) 评论(0) 推荐(0) 编辑

2010年12月24日

Introduction to Regular Expressions(Chapter 1 of Mastering Regular Expressions)

摘要: 阅读全文

posted @ 2010-12-24 22:21 Ray Z 阅读(116) 评论(0) 推荐(0) 编辑

2010年12月23日

Recipe 1.12. Controlling Case(Python Cookbook)

摘要: capitalizeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1'onetWothrEe'.capitalize()2'Onetwothree'3'hellosunshine'.title()4'HelloSunshine'5"abc".upper()6'ABC'7"RAY".lower()8'ray'9importstring10notrans=string.maketrans('','')11de 阅读全文

posted @ 2010-12-23 22:00 Ray Z 阅读(180) 评论(0) 推荐(0) 编辑

Recipe 1.11. Checking Whether a String Is Text or Binary(Python Cookbook)

摘要: [代码] 阅读全文

posted @ 2010-12-23 21:14 Ray Z 阅读(175) 评论(0) 推荐(0) 编辑

2010年12月22日

Recipe 1.10. Filtering a String for a Set of Characters(Python Cookbook)

摘要: [代码] 阅读全文

posted @ 2010-12-22 20:31 Ray Z 阅读(175) 评论(0) 推荐(0) 编辑

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 56 下一页

导航