You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,20 @@ After you implement, `TableViewFormDataSource` protocol within Your `ViewControl
14
14
So here I have created a reusable code-structure/mini-framework/skeleton to use `UITableView` objects to build Dynamic Forms in iOS Applications.
15
15
My major objective on publishing this as an open sourced project in GitHub is to receive your all feedback to identify pros and cons of this implementation and improve this if possible.
16
16
17
+
# Introduction:
18
+
19
+
##### So Let's get into How these forms are made up and inner working
20
+
iDynamicForms are totally dependent on `UITableView` and `UITableViewCell` classes. You already know that `UITableView` has to be backed up by
21
+
a data source, mostly an array of data for each row to be populated and represent the data. Here we have adapted the same concept, iDynamicForms are
22
+
always being backed up by a hybrid combination of `NSArray` and `NSMutableDictionary` objects.
23
+
24
+
The reason to use `NSMutableDictionary` to hold the data objects
25
+
for all cells which makes up the form is, sometimes we may need to grab a particular data object of a cell just by calling its name. So in that case
26
+
`NSMutableDictionary` API helps a lot. But `NSMutableDictionary` lacks one thing. That is it may jumble the order of the objects at runtime in time to time we run
27
+
the application. So in order to keep the order of the objects for each cell in the order the cells may appear, we used the `NSArray` in combination
28
+
with the `NSMutableDictionary`. So in order to make this work we have come up with a convenient simple API. Not only that we can add/remove `UITableViewCells` with
29
+
form content such as messages, buttons, text fields, etc. arbitrary using this structure.
30
+
17
31
# Note:
18
32
Here the form UI is really simple what I have created initially just to give you an idea. And also I will add functionality little by little later on
0 commit comments