1.)我需要添加2個按鈕,一個在另一個之下。以下演示我的工作。它只顯示一個按鈕,但是如何在此按鈕下方添加另一個按鈕圖像的另一個按鈕?添加一個按鈕並在視圖之間導航
2.)當用戶點擊一個按鈕,我需要導航到另一個屏幕。我怎樣才能做到這一點 ? 我需要以下目標-c代碼的等價物嗎?
View1 *view1 = [[View1 alloc] initWithNibName:@"View1" bundle:nil];
[self.navigationController pushViewController:View1 animated:YES];
3.)如何可以添加一個導航欄(相當於在iPhone所示的導航欄)
對於第一問題的代碼;
{
items:[
{
xtype:'button',
text: 'Submit',
ui:'confirm',
handler: function(){
var values = Ext.getCmp('contactForm').getValues();
Ext.Ajax.request({
url: 'http://loonghd.com/service/',
failure: function (response) {
//do something
}, success: function (response) {
// do something
}
});
}
}
]
}
看來這個問題的主人應該接受哪個是EARLIER的正確答案。在這種情況下,M-x's。 – 2012-04-28 11:06:58