Skip to content

Commit c7a1399

Browse files
authored
Merge pull request #7 from randikachan/readme
Readme
2 parents 5e0b27a + 533f3e8 commit c7a1399

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ After you implement, `TableViewFormDataSource` protocol within Your `ViewControl
1414
So here I have created a reusable code-structure/mini-framework/skeleton to use `UITableView` objects to build Dynamic Forms in iOS Applications.
1515
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.
1616

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+
1731
# Note:
1832
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
1933
as time permits me.

0 commit comments

Comments
 (0)