from http://life.different.idv.tw/scottwu/29.htm
 
有用過 mysql 的 UTF-8 編碼的人可能都會對這件事感到疑惑:

zer931 發表在 痞客邦 留言(0) 人氣()

UITableView cell自訂視圖中插入Table實現複雜介面

from http://fecbob.pixnet.net/blog/post/35423964

最近專案中需要實現如下圖所示的效果:
image_thumb8.png  

zer931 發表在 痞客邦 留言(0) 人氣()

Iphone在table cell中添加自訂佈局view

from http://fecbob.pixnet.net/blog/post/35424051

在android開發listView中,每一行的清單可以通過相應的xml定義視圖。在iphone開發中,tableView也提供了通過nib自訂視圖的解決方案。這就使開發者能夠完成相當複雜的介面佈局。

 

下麵介紹table中添加自訂的table cell。實現的效果如下:

zer931 發表在 痞客邦 留言(0) 人氣()

於 CentOS 6.2 安裝 Git, Gitolite 及 Gitlab

由 Calvert 發表於 七月 30, 2012 尚無評論

本文將教導您如何架設 Git Hosting Website,由於 Gitlab 是採用 Rails 框架開發,請先確定您的主機是否已建置 Rails 環境。

1. 下載並安裝 git-core

zer931 發表在 痞客邦 留言(0) 人氣()

Singletons in Objective-C

from http://www.galloway.me.uk/tutorials/singleton-classes/


One of my most used design patterns when developing for iOS is the singleton pattern. It’s an extremely powerful way to share data between different parts of code without having to pass the data around manually. More about the singleton pattern and other patterns can be found in this excellent book:

zer931 發表在 痞客邦 留言(0) 人氣()

Cocos2d 2.0 Touch Input

 
Cocos2d supports two different ways of handling touch events. These are defined by two different types of delegates: Standard Touch Delegate and Targeted Touch Delegate.

STANDARD TOUCH DELEGATE

Standard Touch Event includes ccTouchesBegan:withEvent:ccTouchesMoved:withEvent:ccTouchesEnded:withEvent:ccTouchesCancelled:withEvent:.

zer931 發表在 痞客邦 留言(0) 人氣()

初探ARC - Automatic Reference Counting

 
WWDC 2011的影片開始下載
今天颱風天

zer931 發表在 痞客邦 留言(0) 人氣()

NSMutableArray Sort

 from http://sorrowslee.blogspot.tw/2012/07/nsmutablearray-nsstring-sortorder-array.html

今天來分享一下NSMutableArray的排序方式
NSString *sortOrder = @"AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz_0123456789";
             
            [array sortUsingComparator:^NSComparisonResult(id obj1, id obj2)
             {
                 char char1 = [(NSString *)obj1 characterAtIndex: 0];
                 char char2 = [(NSString *)obj2 characterAtIndex: 0];
                  
                 int index1;
                 for (index1 = 0; index1 < sortOrder.length; index1++)
                     if ([sortOrder characterAtIndex: index1] == char1)
                         break;
                  
                 int index2;
                 for (index2 = 0; index2 < sortOrder.length; index2++)
                     if ([sortOrder characterAtIndex: index2] == char2)
                         break;
                  
                 if (index1 < index2)
                     return NSOrderedAscending;
                 else if (index1 > index2)
                     return NSOrderedDescending;
                 else
                     return [(NSString *)obj1 compare: obj2 options: NSCaseInsensitiveSearch];
             }];

zer931 發表在 痞客邦 留言(0) 人氣()

製作基本的 Animate Sprites

 
 

zer931 發表在 痞客邦 留言(0) 人氣()

我用cocos2D做出滑動選單了

 
好吧我知道這樣子做超笨的。可是我真的覺得剩下的lib都不符合我需求。
就連CCMenuItem也是,根本欺負人(欸?)

zer931 發表在 痞客邦 留言(0) 人氣()