codename one remove back button on ios

孤街浪徒 提交于 2019-12-22 10:53:09

问题


I removed the title of the form because I don't want it. when I did that, a back button on the iOS(On android back button does not show) started to show on the bottom of the form.

I've tried to override showForm() in the StateMachine and invoke setTitle("") but the back button is still there.

@Override 
public Form showForm(String resourceName, Command sourceCommand) {

Form f = super.showForm(resourceName, sourceCommand);
f.setTitle("");

return f;

};

Is there a way to remove that back button?


回答1:


That's not the way. Override allowBackTo as:

protected boolean allowBackTo(String formName) {
    return false;
}


来源:https://stackoverflow.com/questions/25741498/codename-one-remove-back-button-on-ios

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!