首页 \ 问答 \ iphone - 使用UISwitch(iphone - using a UISwitch)

iphone - 使用UISwitch(iphone - using a UISwitch)

我需要实现一个视图,我需要用户使用YES或NO回答几个问题。 我想过使用UISwitch,但据我所知它不允许用YES / NO替换它显示的ON / OFF消息。 我错了吗?

我想用2个按钮实现分段控制,但这就像使用大炮杀死苍蝇...

有关如何做到这一点的任何建议?

谢谢


I need to implement a view where I need the user to answer several questions using YES or NO. I thought of using a UISwitch but as far as I see it does not allows replacing the ON/OFF messages it shows with YES/NO. Am I wrong?

I thought of implementing a segmented control with 2 buttons but this is like using a cannon to kill a fly...

Any suggestions on how to do that?

thanks


原文:https://stackoverflow.com/questions/2523078
更新时间:2022-07-29 21:07

最满意答案

在池中创建3个通道,每个通道对应一个规则。 第一个通道将是role1的通道,将包含action1,第二个通道用于role2和action2等。

您的流程可以跨越通道,只需要保持在同一个池中。


Create 3 lanes within the pool, one for each of the rules. First lane will be lane for role1 and will contain action1, second for role2 with action2 etc.

Your process flow can cross lanes, it only has to stay within the same pool.

相关问答

更多
  • 在创建任何BPMN类型时,请检查是否已关闭BPMN 1.0。 你最终可能会混淆: 可以打开BPMN 1.x 和 2.0,但这会导致您遇到这种情况。 最好从EA的程序文件夹MDGTechnologies删除不需要的MDG文件。 只需将您不需要的文件放在另一个文件夹中, MDGTechnologies disabled 。 Check that you have turned off BPMN 1.0 when creating any BPMN types. You eventually might get ...
  • 问题似乎不在于ATL转换,而在于输入模型。 看起来它不符合您的元模型。 例如,定义与Process有“rootElements”的关系。 这应该在XMI模型中看起来像这样:
    呃,这是一个加号。 如规范中所述http://www.omg.org/spec/BPMN/2.0/ 在命名并行网关时,用直线表示它似乎更直观。 Ugh, it is a plus sign. As stated in the specifications http://www.omg.org/spec/BPMN/2.0/ It just seemed more intuitive to me to represent it with parallel lines when naming it paralle ...
  • EasyBPMN是一种选择。 没有“供应商中立”的方式,因为Java没有这个概念的标准API(不像通用的XML操作),但这将是一个在工作流引擎和建模工具之间更便携的选项。 EasyBPMN is one option. There is no "vendor neutral" way in that Java doesn't have a standard API for the concept (unlike, say generic XML manipulation), but this would b ...
  • 通常这个问题可以通过两种方式来回答。 简化的方式 ,所有次要细节都被删除。 事件是什么回答了这个问题发生了什么? 触发器是回答问题的原因为什么发生? 合格的方式 ,所有必需的细节。 事件发生在流程的上下文中,这会改变流程状态,数据对象,流程流程。 任何过程的主要基本事件是: 开始活动 结束事件 中间事件,即真正重要的事情 前两个确定过程是停止还是仍在工作。 触发器是更通用的实体,也称为事件定义 ,并被指定为被事件捕获 ,即激活它们。 它们可以被描述为一系列的条件,如果这是真的,则会引发一些事件。 触发器可以 ...
  • 在这里: https : //www.omg.org/spec/BPMN/您可以在官方对象管理组网站上找到一些示例(或多或少现实生活)。 到目前为止,我还不知道任何全面的开源BPMN库。 如果您直接与他们联系,BPM工具供应商或参与BPMN的其他人可能会为您提供更多示例。 此外,您可以检查BPM工具的免费版本是否包含可以导出到BPMN 2.0的示例流程。 Here: https://www.omg.org/spec/BPMN/ you can find some examples (more or less ...
  • 消息只能在不同的池之间传递(然后使用事件传递它们)。 如果要在一个池中传递文档(无论是否有一个或多个通道),您需要将其与流并行显示,并且文档图标采用带折叠角的工作表形式,并在流程步骤和文档之间划线。 请参阅本OMG官方文档第26页的示例: http://www.omg.org/spec/BPMN/20100601/10-06-02.pdf Messages can be passed between different pools only (and then you use events to pass ...
  • 在池中创建3个通道,每个通道对应一个规则。 第一个通道将是role1的通道,将包含action1,第二个通道用于role2和action2等。 您的流程可以跨越通道,只需要保持在同一个池中。 Create 3 lanes within the pool, one for each of the rules. First lane will be lane for role1 and will contain action1, second for role2 with action2 etc. Your p ...
  • 对于想知道如何做到这一点的人,我发现了一个商业插件,它在ITP Commerece中运行得非常好,但是唉(非常)昂贵,只需要导入和导出BPMN: http://www.itp-commerce.com/en/process-modeler/ For anyone wondering how to do this, I found a commercial plugin which works very good from ITP Commerece, but alas (very) pricy for ju ...
  • BPMN规范明确没有明确说明通道的确切用途(PDF格式中的第304/335页)。 因此,方法Role1或Role2实际上符合规范。 这种方法也离良好做法不远。 在BPX(业务流程执行)系统中配置流程时,通常可以添加多个角色甚至单个用户作为任务的候选者。 通常,您将创建一个封装Role1和Role2的新角色 - 让我们将其称为Role1 ; 2 。 从信息系统的角度来看,这是有道理的。 例如,如果您使用IT支持执行该过程,则需要授予对允许执行第一个任务的系统/组件的Role1和Role2访问权限。 配置访问权 ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。