Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリケーションに10個のチェックボックスがあります。ユーザーがチェックボックスを押すと、次の行にUITextfieldが追加されます。
チェックするための条件がたくさんあるので、誰かがそれをより速くする方法について提案をすることができますか?私が言及したスクリーンショットで確認してください。
これは、2つのカスタムセルを持つUITableViewを使用して実装します
次に、たとえば、選択したチェックボックスセルの下にtextFieldセルを挿入する– tableView:didSelectRowAtIndexPath:ために実装するチェックボックスセルをオンにしますinsertRowsAtIndexPaths:withRowAnimation:
– tableView:didSelectRowAtIndexPath:
insertRowsAtIndexPaths:withRowAnimation:
これがお役に立てば幸いです。