我在选项卡栏中遇到问题(默认情况下,当应用程序最初加载时,它显示第一个选项卡栏图标被选中并且它也重定向到该页面)
这是我的代码
class AppApplication < Rho::RhoApplication
def initialize
tabbar = [
{:label => 'search', :action => '/app/Search', :icon => '/
public/images/Icons/search.png', :reload => true},
{:label => 'map', :action => '/app/Map', :icon => '/public/
images/Icons/map.png', :reload => true},
{:label => 'menu', :action => '/app/Account', :icon => '/public/
images/Icons/menu.png', :reload => true},
{:label => 'businesses', :action => '/app/Work', :icon => '/
public/images/Icons/businesses.png', :reload => true},
{:label => 'reviews', :action => '/app/Review', :icon => '/
public/images/Icons/reviews.png', :reload => true}
]
Rho::NativeTabbar.create( :tabs => tabbar, :place_tabs_bottom =>
true)
@@toolbar = nil
super
end
end
- 这里(当应用程序最初加载时默认选择“搜索”图标,它也会重定向到搜索页面,但在 rhoconfig.txt 中的 srart 路径是
'/app/Map'
如何避免这个问题?