Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • How is strSelectedState defined? If a user doesn't select a row it will remain at its default state. Commented Apr 16, 2013 at 13:36
  • strSelectedState is defined as nil but I am not checking that. I have a data manager class where I pass all the objects I need when the user saves, see additional edit above to see how I am checking the table values Commented Apr 16, 2013 at 13:41
  • You are checking didSelectRowAtIndexPath:, but you also mentioned that the bug happens when you save before a user makes any row selection at all ("on my test I don't touch the table but the results are always indexPath.row = 0"). What code receives indexPath.row = 0? Commented Apr 16, 2013 at 13:43
  • I posted it in the OP Commented Apr 16, 2013 at 13:45