English 中文(简体)
标签上的累进价值
原标题:Dragging values onto labels

I have an iPad app I m developing where a random number is generated when a user clicks a button, and it appears on a label over the button, so the user thinks that value is on the button. The user can click the button again to get another random number if they want it.

难道我可以让用户从一个来源(即一个标签)拖到另一个标签——这样,用户不必多次点击 but子,以获得他们想要的人数,他们只能从一个菜单上拖到标签上。

感谢任何帮助。

增 编

Baruugh

问题回答

您可以使用<代码>UIText Field,使用户能够自己获得价值。 为什么你们想要做一些使价值观难以实现的事情。

Edit: 如果您希望用户能够使用UIMenuController, 进入标签上显示的价值,那么就能使同一用户选择复制。

rel=“nofollow” http://developer.apple.com/library/ios/documentation/iPhone/Reference/UIMenuController_Class/UIMenuController.html

你们需要处理突发事件。 分层构造和高于其<代码>touches......方法。

首先,您将更新<代码>touchesMoved:with Event:方法上的标签。 在这种方法中,你对超标的点点感兴趣,而不是在标签上,例如<代码>[标明任何物体]的位置。

touchesEnded:with Event:, 您将把标签的位置与纽州核对,如果标签重叠,则将贴到纽顿。 在许多方面可以做到这一点,但海事组织的最佳做法是形成一种代表性模式。 让管理超级概貌的观众控制员成为海关工匠的代表。 在touches Ended:with 活动:方法,让观察控制员处理地点检查和纽芬兰文本更新。





相关问题
C# Building An Array with Button Entries

I have a set of buttons that I want to add into an array so that they are ordered. The buttons I have are: Monday0700Button Monday0730Button Monday0800Button Monday0830Button and so on. How do I ...

Text in disabled and css styled button shows movement in IE

I have disabled and css styled buttons. In Firefox, disabled buttons do not move at all when pressed (which is what is expected), in IE, the text in the buttons still moves a few pixels. Why does ...

Where is Button.DialogResult in WPF?

In System.Windows.Forms.Button there is a property DialogResult, where is this property in the System.Windows.Controls.Button (WPF)?

How to create a submit button template in Oracle APEX?

I m trying to create a template for a button in Oracle APEX but I don t seem to have access to the appropriate substitution strings to make it work. For non-templated buttons APEX seems to insert a ...

Removing text from HTML buttons on all browsers?

We have buttons of many sizes and colors that use background images. There is a label on the background image itself, but we need to keep the button s text in the HTML for usability/accessibility. How ...

Back button loop with IFRAMES

In my (school) website we use Iframes to display class blogs (on blogger). This works well EXCEPT if the user then clicks on (say) a photo inside the iframe. Blogger (in this case) then displays the ...

ruby on rails on click events

I am so sorry if this question seems too easy but I can t seem to find it anywhere. I am creating a ruby in steel project. I have created a html.erb and rb file in a vs project (ruby on rails). My ...