IOS - creating a dynamic user interface from a database

I have a requirement that I need to create a view for an iPAD application from reading values ​​from a database.

When loading the application, I will make a call to the PHP server and PHP will return JSON to me. From this result set, I would like to be able to dynamically create my user interface on the iPAD.

Can someone point me in the right direction or give me some suggestions?

+5
source share
1 answer

There a video session of WWDC 2010 is about this method. It was called "Creating a server user experience."

You have a server that sends an XML, JSON application or a compressed list (recommended) with all the coordinates of the user interface object, colors, visibility, text, images, etc., Then it analyzes the data and creates an instance of the application from this data. Save user interface data in a local database for offline use. etc.

You are not allowed to load scripts (*) in the application of the application store, but you can include many built-in script parameters from which you select the desired behavior at runtime.

  • Added: Starting in 2017 (section of the agreement with the developer 3.3.2), Apple now allows you to load certain types of scripts into applications, but only for educational / educational purposes, and not if they significantly change the behavior of the application.
+4
source

Source: https://habr.com/ru/post/1336563/


All Articles