Skip to end of metadata
Go to start of metadata


 
  The iPhone ON-OFF Switch iBloc can be used to quickly and easily simulate a typical iPhone on-off switch.

Key Features

An iPhone ON-OFF Switch iBloc adds the following capabilities to an iRise simulation:

  • Insert and easily configure a typical iPhone on-off switch in your simulations.
  • Leverage the On Selection Change custom trigger.

Before you start

  • Download the iPhone Content Kit to leverage a wide variety of graphical content in your iPhone simulations (iRise 8.8 required).
  • When building a simulation for an iPhone application, try to get your hands on an actual iPhone to get a feel for how applications work on the physical device. This will help guide the behaviors and interactions you build in your simulation.
  • If you are not familiar with designing iOS applications, do a little research before attempting to build an iPhone simulation.

Usage Tips

  • Although the width and height of this iBloc can be modified in Studio, these properties are ignored when the iBloc is rendered in the browser. The dimensions of the iBloc in the browser will always be the default values indicated in the "Special Properties" table on this page.
  • The Target widget for the iPhone ON-OFF Switch iBloc can be another iBloc.
  • You can insert common HTML tags to format the text in the Value ON and Value OFF fields.
  • Switch between iOS6 and iOS7 styles using the Theme setting.

Basic Usage

  1. Drag the ON-OFF Switch iBloc to a page.
  2. (Optional) Enter a text value for the Value ON field.
  3. (Optional) Enter a text value for the Value OFF field.
  4. (Optional) Click the chooser button in the Target widget field to select a widget that will receive the values specified in the Value ON and Value OFF fields.
  5. If an animation effect is desired when the ON-OFF Switch's state is changed, select the Animate checkbox.
  6. (Optional) Enter a value in the Selected Value field. The value entered into this field should match the value specified in the Value ON or Value OFF field. 
  7. Select the look of the switch during simulation, iPhone 4,5,7 - iPhone 7 is the default style

Known Limitations
  • While one ON-OFF Switch iBloc can be the Target widget for another, if both iBlocs reference each other, one will be hidden in the browser.
  • The Enable or Disable iBloc does not work with this iBloc.


iBloc Details

Type: Action
Latest Version: 3.4
Supported By: iRise


iBloc Version Minimum Studio Version Supported Browsers
3.4 8.12 IE8, IE9 and IE10, Firefox 22, Chrome 30, Safari 5.1.7


Special Properties

Property
Use
Expects / Produces
Width/Height Normally used to set the dimensions of a widget, these attributes have no effect in simulation for this iBloc. Will accept any positive integer in Studio, but always defaults in simulation to 94 x 27.
Value ON Specifies the value of the iBloc in its "on" state. Alphanumeric string
Value OFF Specifies the value of the iBloc in its "off" state. Alphanumeric string
Target widget Links the ON-OFF Switch iBloc to a widget on the page. The default value of the iBloc will appear in the Target widget on page load. A built-in On Selection Change event automatically changes the value of the Target widget when the iBloc's state is changed. Selection from the available widgets on the page.
Animate Specifies whether or not the switch will animate when its state is changed. Boolean value
Selected Value Specifies the default value of the iBloc. Must match one of the values specified in the Value ON or Value OFF field. Alphanumeric string
Phone type Sets the look of the switch during simulation. Select box: iPhone 4,5,7 -  iPhone 7 is the default style

Note: To associate a data field with one of the properties listed above, click the small square to the right of the property field. The Set Property dialog will allow you to select a data field currently flowing into the widget.

Support and Feedback

People-Powered Customer Service for iRise

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.