Richawillams Posted March 6, 2018 Report Posted March 6, 2018 I'm new to iOS and, Objective-C and the whole MVC paradigm and I'm stuck with the following: I have a view that acts as a data entry form and I want to give the user the option to select multiple products. The products are listed on another view with the UITableView controller and I have enabled multiple selections. My question is, how do I transfer the data from one view to another? I will be holding the selections on the UITableView in an array, but how do I then pass that back to the previous data entry form view so it can be saved along with the other data to core data on submission of the form? I have surfed around and seen some people declare an array in the app delegate. I read something about Singletons but don't understand what these are and I read something about creating a data model. What would be the correct way of performing this and how would I go about it? Thanks Richawilliams Quote
ringaringa Posted March 6, 2018 Report Posted March 6, 2018 nuvvu me company ki marketing chestunavaa bhayya....endi ee loli Quote
Quickgun_murugan Posted March 6, 2018 Report Posted March 6, 2018 58 minutes ago, Richawillams said: I'm new to iOS and, Objective-C and the whole MVC paradigm and I'm stuck with the following: I have a view that acts as a data entry form and I want to give the user the option to select multiple products. The products are listed on another view with the UITableView controller and I have enabled multiple selections. My question is, how do I transfer the data from one view to another? I will be holding the selections on the UITableView in an array, but how do I then pass that back to the previous data entry form view so it can be saved along with the other data to core data on submission of the form? I have surfed around and seen some people declare an array in the app delegate. I read something about Singletons but don't understand what these are and I read something about creating a data model. What would be the correct way of performing this and how would I go about it? Thanks Richawilliams K Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.