Skip to content

6b. Cell: Button

i_82 edited this page Mar 26, 2018 · 2 revisions

Button cell can perform internal selectors or custom selectors and pass arguments to them.

Key Type Description Flags Default
alignment String textLabel.textAlignment Optional Natural
action String selector name Required -
args Dictionary selector object dictionary Optional {}
alignment Description
Left NSTextAlignmentLeft
Center NSTextAlignmentCenter
Right NSTextAlignmentRight
Natural NSTextAlignmentNatural
Justified NSTextAlignmentJustified

Internal selectors

action Description
OpenURL: [[UIApplication sharedApplication] openURL:url]
OpenURL: Type Description Flags
url String URL to open Required

No return value

Example

{
    "cell": "Button",
    "action": "OpenURL:",
    "label": "Contact i.82@me.com",
    "alignment": "Center",
    "args": {
        "url": "mailto://i.82@me.com"
    }
}

Clone this wiki locally