I want to make something similar to the WiFi settings page: when you tap the table cell, put a checkbox in the left side of the cell, and have a disclosure button accessory view on the right to show more details.
My question: is there a way to put the checkmark in the left side of a UITableViewCell without building a custom UITableViewCell ?
Best Answer
The answer is YES! You don't have to create a custom cell for that or add image views. To simulate checkboxes you only have to prepend a unicode symbol for a checkbox state to the cell text.
The unicode symbols I'm using for checkboxes are
\u2705
for checked and\u2B1C
for unchecked (nearly the same as\U0001F533
on iOS 5). iOS renders several unicode symbols as icons.Here are some other symbols:
Imitating the Wi-Fi settings page (with
UITableViewCellStyleValue1
):