如何模仿股票后退按钮[重复](How to imitate stock back button [duplicate])
我想在我的标准后退按钮中添加一个动作,但这不会起作用,因为我从下面的链接中找到:
所以我创建了一个带动作的自定义按钮。
UIBarButtonItem(title: "❮ Back", style: .Bordered, target: self, action: "back:")
但是如何将标准左翼设置为标题?
字符“❮”比标准按钮小。 我在我的应用程序中使用标准按钮,我想保留这个光学器件。
This question already has an answer here:
I want to add an Action to my standard Back-Button, but this won't work as I found from below link:
add-target-to-stock-back-button-in-navigationbar
So I created a custom button with an action.
UIBarButtonItem(title: "❮ Back", style: .Bordered, target: self, action: "back:")
But how can I set the standard left wing to the title?
The character '❮' is way smaller than that from the standard button. I use the standard button throughout my app, and I want to keep this optic.
原文:https://stackoverflow.com/questions/35080933
更新时间:2022-07-30 13:07
最满意答案
写下面的东西
<script type="text/javascript"> function myFunction() { var num1 = document.getElementById("CurrentRateTextBox").value; var num2 = document.getElementById("NewPayRateTextBox").value; var inc = ((num2 - num1) / num1 * 100); alert(inc); if (inc >= 10) { //your code document.getElementById("NewPayRateTextBox").value = ""; } else { } } </script>
打电话的方法
ID="NewPayRateTextBox" onblur="myFunction()"
write something like below
<script type="text/javascript"> function myFunction() { var num1 = document.getElementById("CurrentRateTextBox").value; var num2 = document.getElementById("NewPayRateTextBox").value; var inc = ((num2 - num1) / num1 * 100); alert(inc); if (inc >= 10) { //your code document.getElementById("NewPayRateTextBox").value = ""; } else { } } </script>
approach to call
ID="NewPayRateTextBox" onblur="myFunction()"
相关问答
更多-
现在编辑看起来更清晰了,谢谢! 这可能是一个愚蠢的问题(我厌倦了漫长的一天的工作),但为什么不直接绑定到命令,而是通过静态资源? Things look much clearer now with the edits, thanks! This might be a stupid question (I'm somewhat tired of a long day's work), but ...
-
最后,我在JQuery中找到重置所有字段的方法。 只需触发重置。 $('#form').trigger("reset"); 感谢所有的帮助。 Finally I find the method in JQuery to reset all fields. Just Trigger reset. $('#form').trigger("reset"); Thanks all for help.
-
一种方法: document.getElementById('button1').addEventListener('click', function() { myAlert(document.getElementById('userQuery')); }); 在您的代码中,调用addEventListener时会计算表达式myAlert(document.getElementById('userQuery')) 。 这就是你加载页面时看到空白警报的原因。 相反,您需要传递一个函数,该函数将在click事 ...
-
您应该在jquery代码的选择器中尝试使用Html::getInputId($model, 'mrp')而不是Productbatch-mrp 。 希望对你有所帮助。 RegisterJs ( " $('document').ready(function(){ $('#".Html::getInputId($model, 'mrp')."').keyup(function(){ var total = th ...
-
为什么没有带有InputScope的TextBox的PopUp是Number(Why there is no PopUp for TextBox with InputScope is Number)[2022-09-21]
要使用屏幕键盘测试文本框的InputScope属性,应用程序需要在选择了触摸模式的模拟器中打开。 To test InputScope property of textbox with on-screen keyboard, the app needs to be open in simulator with touch mode selected. -
首先,当您可以使用Content属性时,这是一个奇怪的想法。 但是,嘿,你是开发人员,你知道你的应用程序。 不是我。 好吧,问题是因为AppBarButton清楚地抓住空间并处理它。 您可以通过以下简单方法克服此问题:
... -
好的,所以,没有什么可做的。 必须添加这个。 protected void btnSelectPerson_Click(object sender, EventArgs e) { TextBox t2 = (TextBox)gvProjectResource.FooterRow.FindControl("t2"); t2.Text = ddlPersons.SelectedItem.Text; mpFindPerson.Hide(); } ...
-
将焦点更改为按钮将阻止与文本框的任何交互。 所以,另一种解决方案将如下所示: $(document).on('keypress', '#ID', function() { $("#Btn").addClass('focused'); }); .focused { border: 1px solid blue; } ...
-
String.Format("{0:0,0.00}", 12345.67); // 12,345.67 String.Format("{0:0,0.00}", 12345.6); // 12,345.60 String.Format("{0:0,0.00}", 12345); // 12,345.00 String.Format("{0:0,0.##}", 12345.67); // 12,345.67 String.Format("{0:0,0.##}", 12345.6); // 12,345.6 S ...