2015-05-11 27 views
0

我有一個設置屏幕,很好地利用工程「促進-FORMOTION」寶石。我想提出幾個行的進入,將調用的方法按鈕按下例如當:促銷:: FormotionScreen添加on_touch行動來排

def table_data 
    set_nav_bar_button :left, title: "Cancel", action: :close 
    set_nav_bar_button :right, title: "Save", action: :submit 

    {sections:[{ 
     title: 'Help', 
     rows: [{ 
     title: "About", 
     type: :string, 
     editable: false, 
     action: :help #this is the sort of thing I want 
     }] 
    }, { 
     title: 'General', 
     rows: [ 
[...etc...] 

任何人都知道我能做到這一點?

編輯:我發現了一個可能的解決方案在這裏: How to use .on_delete callback in ProMotion-Formotion

但還是想知道如果有是TABLE_DATA方法中做這件事的方式。

回答