<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I’m trying to do something that I <i class="">thought</i>&nbsp;would be rather simple:&nbsp;</div><div class=""><ol class="MailOutline"><li class="">Display a list of information in rows of a table (in this case, each row would contain a ‘name’ and a ‘location’ label)</li><li class="">If clicked on once, the row should become selected (highlighted and checked)</li><li class="">If clicked on again (same row), the row should become un-selected (un-highlighted and un-checked)</li><li class="">Alternatively, after clicking and selecting one row, if you click on a different row, the first row should become un-selected and the second row should become selected (i.e.: single-selection list)</li></ol><div class=""><br class=""></div></div><div class="">For my purposes I created two custom classes:</div><div class=""><ul class="MailOutline"><li class=""><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">class</span><span style="font-variant-ligatures: no-common-ligatures" class=""> ExistingLocationsViewController: </span><span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">UITableViewController</span></div></li><li class=""><div style="margin: 0px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">class</span><span style="font-variant-ligatures: no-common-ligatures" class=""> ExistingLocationTableViewCell: </span><span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">UITableViewCell</span></div></li></ul><div class=""><br class=""></div></div><div class="">I’ve gone through numerous trial-and-error situations based on some combination of:</div><div class=""><ul class="MailOutline"><li class="">What I’ve read in books</li><li class="">What I’ve read online in various forums</li><li class="">What I’ve thought made sense intuitively</li><li class="">What I could glean from lots of debugging print statements</li></ul><div class=""><br class=""></div></div><div class="">The current version of my code seems to satisfy points #1-3, but crashes when attempting to deal with #4 - and I’m not sure that what I’ve done is “good” or “correct” in terms of satisfying the first three points.</div><div class=""><br class=""></div><div class="">I’ve attached the code and the (annotated) debugging log output - the latter gets to a point where I seem to solve #4, but then causes other complications</div><div class=""><br class=""></div><div class="">I’m looking for pointers, advice, suggestions, corrections, etc. &nbsp;While I’m not looking to have someone write my code for me, I’m certainly willing to accept such a contribution. &nbsp;Ideally, when done with this, I hope to have a reasonably clear understanding of what <u class="">was</u> wrong and what <u class="">is</u> right.</div><div class=""><br class=""></div><div class="">This is only the bare beginnings of the application I’m trying to write, and it’s rather frustrating to run into such a confusing issue on something that - to me - seems like it should be so simple to implement.</div><div class=""></div></body></html>