-1

I am trying to parse json data and convert it to form in iOS. I am successfully able to parse data and display it, however, i want to fix the UI and make it look more like an iOS form, perhaps using tableviews, etc.

How do I approach this? should I just use a tableviewController or use a tableview? (the fields are dynamically added, so I have no idea what type and how many fields I will have, until I make a call to the API and fetch the data from the json that I get)

Are there any easy to use libraries in iOS that I can use?

Cœur
  • 37,241
  • 25
  • 195
  • 267
JJ S.
  • 84
  • 7
  • Welcome to Stack Overflow. Please take the [tour] and review [ask]. Your first step should be to search (using google or whatever) for `ios dynamic form` ... and start reading. Lots of ways to do something like this, so you'll want to look at various approaches and, based on what you expect you'll need, start working with one that seems suitable. – DonMag Mar 10 '20 at 12:39

1 Answers1

0

That's not how UI design works on iOS. For the specific example that you mentioned of a tableViewController getting fed from an API... You'll create a tableViewController and you will design a demo cell.

Then you will fetch the results from your API, parse it. And you will iterate over the results returned by the API, inside that iteration you will programatically create the table cells (thus ensuring that you are creating as many tables as you need).

Nevertheless this is a extremely vague question, and besides briefly explaining how this whole thing works on general terms, there is not much more I can do without you posting the code you have so far.

Allow me to refer you to this tutorial by NSCookBook that although old is gold when it comes to these things.

Regards,

CTABUYO
  • 662
  • 2
  • 7
  • 27