Skip to content

Commit e3e65c7

Browse files
author
Kasun Randika
committed
* Changed the file organization within the project to isolate the iDynamicForms related files.
1 parent dfba85f commit e3e65c7

35 files changed

+900
-141
lines changed

iDynamicForms.xcodeproj/project.pbxproj

Lines changed: 163 additions & 133 deletions
Large diffs are not rendered by default.

iDynamicForms/UI/Controllers/ViewController/ViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ - (UIStatusBarStyle)preferredStatusBarStyle {
5252
#pragma mark TableView DataSource
5353
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
5454
{
55-
NSLog(@"count: %ld", (unsigned long)[[tableManager mArrFormContentIdentifiersOrder] count]);
55+
// NSLog(@"count: %ld", (unsigned long)[[tableManager mArrFormContentIdentifiersOrder] count]);
5656
return [[tableManager mArrFormContentIdentifiersOrder] count];
5757
}
5858

iDynamicForms/UI/Controllers/ViewController/ViewControllerFormDataSource.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#import "SwitchesTableViewCell.h"
1818
#import "ButtonTableViewCell.h"
1919
#import "EmptyTableViewCell.h"
20-
#import "Config.h"
20+
#import "IDynamicFormsConfig.h"
2121

2222
@interface ViewControllerFormDataSource () {
2323
DynamicTableManager *dynamicManager;

iDynamicForms/Utilities/iDynamicForms/DynamicTableManager.m renamed to iDynamicForms/Utilities/iDynamicForms/DynamicTableManager/DynamicTableManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#import "ButtonTableViewCell.h"
1818
#import "EmptyTableViewCell.h"
1919
#import "SegmentedControlTableViewCell.h"
20-
#import "Config.h"
20+
#import "IDynamicFormsConfig.h"
2121

2222
@implementation DynamicTableManager {
2323
NSString *currentCellID;

iDynamicForms/Application/Config.h renamed to iDynamicForms/Utilities/iDynamicForms/IDynamicFormsConfig.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
//
2-
// Config.h
3-
// DynamicTableView
2+
// IDynamicFormsConfig.h
3+
// iDynamicForms
44
//
5-
// Created by Kasun Randika on 5/9/16.
5+
// Created by Kasun Randika on 6/30/16.
66
// Copyright © 2016 Kasun Randika. All rights reserved.
77
//
88

@@ -56,6 +56,6 @@
5656
#define INT_PREFIX @"intValue"
5757
#define FLOAT_PREFIX @"floatValue"
5858
#define BOOL_PREFIX @"boolValues"
59-
@interface Config : NSObject
59+
@interface IDynamicFormsConfig : NSObject
6060

6161
@end

iDynamicForms/Models/FormPortionTableViewCellData.m renamed to iDynamicForms/Utilities/iDynamicForms/Models/FormPortionTableViewCellData.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
#import "FormPortionTableViewCellData.h"
10-
#import "Config.h"
10+
#import "IDynamicFormsConfig.h"
1111

1212
@implementation FormPortionTableViewCellData
1313

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// BAButtonTableViewCell.h
3+
// DynamicTableView
4+
//
5+
// Created by Kasun Randika on 5/9/16.
6+
// Copyright © 2016 Kasun Randika. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface ButtonTableViewCell : UITableViewCell
12+
@property (weak, nonatomic) IBOutlet UIButton *tblVwCellButton;
13+
14+
@end
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// BAButtonTableViewCell.m
3+
// DynamicTableView
4+
//
5+
// Created by Kasun Randika on 5/9/16.
6+
// Copyright © 2016 Kasun Randika. All rights reserved.
7+
//
8+
9+
#import "ButtonTableViewCell.h"
10+
11+
@implementation ButtonTableViewCell
12+
@synthesize tblVwCellButton;
13+
14+
- (void)awakeFromNib {
15+
// Initialization code
16+
}
17+
18+
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
19+
[super setSelected:selected animated:animated];
20+
21+
// Configure the view for the selected state
22+
}
23+
24+
@end
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10116" systemVersion="15C50" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
3+
<dependencies>
4+
<deployment identifier="iOS"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
6+
</dependencies>
7+
<objects>
8+
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
9+
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
10+
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="8Kv-Mw-wGG" customClass="ButtonTableViewCell">
11+
<rect key="frame" x="0.0" y="0.0" width="320" height="65"/>
12+
<autoresizingMask key="autoresizingMask"/>
13+
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="8Kv-Mw-wGG" id="sSS-m5-RuN">
14+
<rect key="frame" x="0.0" y="0.0" width="320" height="65"/>
15+
<autoresizingMask key="autoresizingMask"/>
16+
<subviews>
17+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YJG-Nk-iyd">
18+
<rect key="frame" x="30" y="17" width="260" height="30"/>
19+
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
20+
<constraints>
21+
<constraint firstAttribute="height" constant="30" id="8WG-Kc-MBy"/>
22+
<constraint firstAttribute="width" constant="260" id="WLx-Sp-ZzC"/>
23+
</constraints>
24+
<state key="normal" title="Sign Up">
25+
<color key="titleColor" white="0.0" alpha="1" colorSpace="calibratedWhite"/>
26+
</state>
27+
</button>
28+
</subviews>
29+
<constraints>
30+
<constraint firstItem="YJG-Nk-iyd" firstAttribute="centerX" secondItem="sSS-m5-RuN" secondAttribute="centerX" id="Tg5-z6-YCg"/>
31+
<constraint firstItem="YJG-Nk-iyd" firstAttribute="centerY" secondItem="sSS-m5-RuN" secondAttribute="centerY" id="mmI-Q5-AA7"/>
32+
</constraints>
33+
</tableViewCellContentView>
34+
<connections>
35+
<outlet property="tblVwCellButton" destination="YJG-Nk-iyd" id="jr8-F7-FCX"/>
36+
</connections>
37+
<point key="canvasLocation" x="389" y="297.5"/>
38+
</tableViewCell>
39+
</objects>
40+
</document>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// BAEmptyTableViewCell.h
3+
// DynamicTableView
4+
//
5+
// Created by Kasun Randika on 5/9/16.
6+
// Copyright © 2016 Kasun Randika. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface EmptyTableViewCell : UITableViewCell
12+
13+
@end
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// BAEmptyTableViewCell.m
3+
// DynamicTableView
4+
//
5+
// Created by Kasun Randika on 5/9/16.
6+
// Copyright © 2016 Kasun Randika. All rights reserved.
7+
//
8+
9+
#import "EmptyTableViewCell.h"
10+
11+
@implementation EmptyTableViewCell
12+
13+
- (void)awakeFromNib {
14+
// Initialization code
15+
}
16+
17+
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
18+
[super setSelected:selected animated:animated];
19+
20+
// Configure the view for the selected state
21+
}
22+
23+
@end
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10116" systemVersion="15C50" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
3+
<dependencies>
4+
<deployment identifier="iOS"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
6+
</dependencies>
7+
<objects>
8+
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
9+
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
10+
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="xrN-YQ-OWs" customClass="EmptyTableViewCell">
11+
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
12+
<autoresizingMask key="autoresizingMask"/>
13+
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="xrN-YQ-OWs" id="L7W-gv-92A">
14+
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
15+
<autoresizingMask key="autoresizingMask"/>
16+
</tableViewCellContentView>
17+
<point key="canvasLocation" x="316" y="270"/>
18+
</tableViewCell>
19+
</objects>
20+
</document>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// BAHeadTitleTableViewCell.h
3+
// DynamicTableView
4+
//
5+
// Created by Kasun Randika on 5/9/16.
6+
// Copyright © 2016 Kasun Randika. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface HeadTitleTableViewCell : UITableViewCell
12+
13+
@property (weak, nonatomic) IBOutlet UILabel *lblHeadTItle;
14+
@end
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// BAHeadTitleTableViewCell.m
3+
// DynamicTableView
4+
//
5+
// Created by Kasun Randika on 5/9/16.
6+
// Copyright © 2016 Kasun Randika. All rights reserved.
7+
//
8+
9+
#import "HeadTitleTableViewCell.h"
10+
11+
@implementation HeadTitleTableViewCell
12+
13+
- (void)awakeFromNib {
14+
// Initialization code
15+
}
16+
17+
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
18+
[super setSelected:selected animated:animated];
19+
20+
// Configure the view for the selected state
21+
}
22+
23+
@end
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10116" systemVersion="15C50" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
3+
<dependencies>
4+
<deployment identifier="iOS"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
6+
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
7+
</dependencies>
8+
<objects>
9+
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10+
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11+
<tableViewCell autoresizesSubviews="NO" contentMode="scaleToFill" horizontalHuggingPriority="1000" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" selectionStyle="default" indentationWidth="10" rowHeight="44" id="x0d-Q7-rz9" customClass="HeadTitleTableViewCell">
12+
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
13+
<autoresizingMask key="autoresizingMask"/>
14+
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" tableViewCell="x0d-Q7-rz9" id="ab6-hc-my6">
15+
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
16+
<autoresizingMask key="autoresizingMask"/>
17+
<subviews>
18+
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dummy_tblcl_bg.png" translatesAutoresizingMaskIntoConstraints="NO" id="tnb-2l-TRc">
19+
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
20+
<constraints>
21+
<constraint firstAttribute="height" constant="44" id="Mau-F7-2Qv"/>
22+
</constraints>
23+
</imageView>
24+
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="1000" verticalHuggingPriority="1000" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" image="dummy.png" translatesAutoresizingMaskIntoConstraints="NO" id="01C-bP-J0Y">
25+
<rect key="frame" x="20" y="10" width="24" height="24"/>
26+
<color key="backgroundColor" white="0.66666666666666663" alpha="1" colorSpace="calibratedWhite"/>
27+
<constraints>
28+
<constraint firstAttribute="height" constant="24" id="Y0Y-HG-8lu"/>
29+
<constraint firstAttribute="width" constant="24" id="uMb-Zn-4hv"/>
30+
</constraints>
31+
</imageView>
32+
</subviews>
33+
<constraints>
34+
<constraint firstItem="tnb-2l-TRc" firstAttribute="leading" secondItem="ab6-hc-my6" secondAttribute="leadingMargin" constant="-8" id="5hM-H4-qPE"/>
35+
<constraint firstAttribute="trailingMargin" secondItem="tnb-2l-TRc" secondAttribute="trailing" constant="-8" id="7YV-3T-hJz"/>
36+
<constraint firstItem="tnb-2l-TRc" firstAttribute="leading" secondItem="ab6-hc-my6" secondAttribute="leading" id="EBe-WY-iLQ"/>
37+
<constraint firstItem="01C-bP-J0Y" firstAttribute="leading" secondItem="ab6-hc-my6" secondAttribute="leadingMargin" constant="12" id="ay3-Z0-Sje"/>
38+
<constraint firstItem="01C-bP-J0Y" firstAttribute="centerY" secondItem="ab6-hc-my6" secondAttribute="centerY" id="v5R-hK-uto"/>
39+
<constraint firstItem="tnb-2l-TRc" firstAttribute="centerY" secondItem="01C-bP-J0Y" secondAttribute="centerY" id="yD0-5K-kcr"/>
40+
</constraints>
41+
</tableViewCellContentView>
42+
<color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
43+
<point key="canvasLocation" x="575" y="485"/>
44+
</tableViewCell>
45+
</objects>
46+
<resources>
47+
<image name="dummy.png" width="24" height="24"/>
48+
<image name="dummy_tblcl_bg.png" width="320" height="44"/>
49+
</resources>
50+
</document>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// BAHintTableViewCell.h
3+
// DynamicTableView
4+
//
5+
// Created by Kasun Randika on 5/9/16.
6+
// Copyright © 2016 Kasun Randika. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface HintTableViewCell : UITableViewCell
12+
13+
@property (weak, nonatomic) IBOutlet UITextView *txtVwDescription;
14+
15+
@end
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
//
2+
// BAHintTableViewCell.m
3+
// DynamicTableView
4+
//
5+
// Created by Kasun Randika on 5/9/16.
6+
// Copyright © 2016 Kasun Randika. All rights reserved.
7+
//
8+
9+
#import "HintTableViewCell.h"
10+
11+
@implementation HintTableViewCell
12+
@synthesize txtVwDescription;
13+
14+
- (void)awakeFromNib {
15+
// Initialization code
16+
}
17+
18+
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
19+
[super setSelected:selected animated:animated];
20+
21+
// Configure the view for the selected state
22+
}
23+
24+
@end
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="10116" systemVersion="15C50" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
3+
<dependencies>
4+
<deployment identifier="iOS"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
6+
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
7+
</dependencies>
8+
<objects>
9+
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10+
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11+
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="ZJ2-Yc-2Pd" customClass="HintTableViewCell">
12+
<rect key="frame" x="0.0" y="0.0" width="320" height="75"/>
13+
<autoresizingMask key="autoresizingMask"/>
14+
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="ZJ2-Yc-2Pd" id="0JN-6t-z8g">
15+
<rect key="frame" x="0.0" y="0.0" width="320" height="74.5"/>
16+
<autoresizingMask key="autoresizingMask"/>
17+
<subviews>
18+
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" textAlignment="natural" selectable="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KTw-WR-37Q">
19+
<rect key="frame" x="20" y="10" width="280" height="55"/>
20+
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
21+
<fontDescription key="fontDescription" type="system" pointSize="14"/>
22+
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
23+
</textView>
24+
</subviews>
25+
<constraints>
26+
<constraint firstItem="KTw-WR-37Q" firstAttribute="leading" secondItem="0JN-6t-z8g" secondAttribute="leadingMargin" constant="12" id="1rg-yf-d4x"/>
27+
<constraint firstItem="KTw-WR-37Q" firstAttribute="top" secondItem="0JN-6t-z8g" secondAttribute="topMargin" constant="2" id="PiP-xP-DWU"/>
28+
<constraint firstAttribute="bottomMargin" secondItem="KTw-WR-37Q" secondAttribute="bottom" constant="2" id="cJL-IV-C0G"/>
29+
<constraint firstAttribute="trailingMargin" secondItem="KTw-WR-37Q" secondAttribute="trailing" constant="12" id="vOn-55-X1m"/>
30+
</constraints>
31+
</tableViewCellContentView>
32+
<connections>
33+
<outlet property="txtVwDescription" destination="KTw-WR-37Q" id="Duv-Ow-XGJ"/>
34+
</connections>
35+
<point key="canvasLocation" x="614" y="400.5"/>
36+
</tableViewCell>
37+
</objects>
38+
</document>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// BALinkTableViewCell.h
3+
// DynamicTableView
4+
//
5+
// Created by Kasun Randika on 5/9/16.
6+
// Copyright © 2016 Kasun Randika. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface LinkTableViewCell : UITableViewCell
12+
13+
@property (weak, nonatomic) IBOutlet UIButton *btnLink;
14+
15+
@end

0 commit comments

Comments
 (0)