2013-01-04 45 views

回答

2

只要继承UITableViewCell的,因为他们做的:

def MyTableCell < UITableViewCell  
    def addColumn(position) 
    # Add their example code here 
    end 
    # Etc 
end 

...我不会为你做,但你的想法。只需将Obj-C转换为RubyMotion。他们给你一个非常完整的例子。

如果你的目标的iOS 6+,还有就是你要找一个叫UICollectionView新的对象也可以给你的能力来创建:

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UICollectionView_class/Reference/Reference.html