ios上的代号一个删除后退按钮 [英] codename one remove back button on ios
本文介绍了ios上的代号一个删除后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我删除了表单的标题,因为我不想要它。当我这样做时,iOS上的后退按钮(在android上不显示后退按钮)开始显示在表单底部。
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.
我尝试在StateMachine中重写showForm()并调用setTitle(),但后退按钮仍然存在。
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?
推荐答案
那不是办法。覆盖allowBackTo为:
That's not the way. Override allowBackTo as:
protected boolean allowBackTo(String formName) {
return false;
}
这篇关于ios上的代号一个删除后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文