onkar
onkar

Reputation: 119

Set Dynamic UI in iOS

I have just started developing apps on iOS, I would just like to know if i can set dynamic TextVIew and TextField for the app that are coming from the API/web. If it is possible please let me know with the suitable example and if iOS doesnot permit this feature, a good approach towards this task.

Upvotes: 1

Views: 723

Answers (1)

user1535967
user1535967

Reputation: 177

There's a WWDC 2010 session video on exactly this method. Was called something like data driven app design.

You have a server send an app XML, JSON, or a compressed plist (recommended), with all the UI object coordinates, colors, visibility, text, images, etc., then parse the data, and instantiate the apps UI from that data. Save the UI data in a local database for offline use. etc.

You are not allowed to download scripts to an App store app, but you can include lots of built-in script options from which you select at runtime the desired behavior.

Upvotes: 3

Related Questions