Skip to content

Commit 4b6e1d1

Browse files
author
Kasun Randika
committed
* Generic modifications.
1 parent b781fb8 commit 4b6e1d1

File tree

7 files changed

+9
-7
lines changed

7 files changed

+9
-7
lines changed

Diff for: iDynamicForms/Utilities/iDynamicForms/DynamicTableManager/DynamicTableManager.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ - (UITableViewCell *) generateFormCellForRowAtIndexPath:(NSIndexPath *) indexPat
286286
cellTextField = [nib objectAtIndex:0];
287287

288288
[cellTextField.txtFldDetail setTag:data.tag];
289-
cellTextField.txtFldDetail.delegate = self; //data.mainUIControlDelegate;
289+
cellTextField.txtFldDetail.delegate = data.mainUIControlDelegate;
290290
if (data.mainUIControlSelector) {
291291
SEL customSelector = NSSelectorFromString(data.mainUIControlSelector);
292292
if ([data.mainUIControlDelegate respondsToSelector:customSelector]) {

Diff for: iDynamicForms/Utilities/iDynamicForms/Models/FormPortionTableViewCellData.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,15 @@
3636
@property (nonatomic, assign) CGFloat cellHeight;
3737
@property (nonatomic, assign, getter=isSecuredTextField) BOOL securedTextField; // Whether a textField's text is secured text or not
3838
@property (nonatomic, assign, getter=isEnabled) BOOL uiState; // Switch enabled or disabled
39-
@property (nonatomic, assign, getter=isTurnedOn) BOOL state; // Switch ON/OFF
39+
@property (nonatomic, assign, getter=isTurnedOn) BOOL state; // Switch ON/OFF
4040
@property (nonatomic, assign, getter=isInvalid) BOOL validationError; // True/False upon data validation
4141
@property (nonatomic, assign, getter=shouldResetControl) BOOL resetControlUI; // True/False upon data validation
4242

4343
#pragma mark Cell-UIControl actions and delegates
4444
// can pass a custom selector(method) which will be assigned as the target of the UI Control within the cell
4545
@property (nonatomic, strong) NSString *mainUIControlSelector;
4646
@property (nonatomic,strong) id mainUIControlDelegate;
47+
@property (nonatomic,strong) id UIKitUIControlDelegate; // to provide iOS API Delegate methods references.
4748

4849
#pragma mark Cell-UIControl user interactive data
4950
@property (nonatomic, assign, getter=shouldPrintData) BOOL printData;

Diff for: iDynamicForms/Utilities/iDynamicForms/Models/FormPortionTableViewCellData.m

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ @implementation FormPortionTableViewCellData
3131
#pragma mark Cell-UIControl actions and delegates
3232
@synthesize mainUIControlSelector;
3333
@synthesize mainUIControlDelegate;
34+
@synthesize UIKitUIControlDelegate;
3435

3536
#pragma mark Cell-UIControl user interactive data
3637
@synthesize printData;

Diff for: iDynamicForms/Utilities/iDynamicForms/Views/ButtonTableViewCell/ButtonTableViewCell.xib

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<rect key="frame" x="0.0" y="0.0" width="320" height="65"/>
1212
<autoresizingMask key="autoresizingMask"/>
1313
<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"/>
14+
<rect key="frame" x="0.0" y="0.0" width="320" height="64.5"/>
1515
<autoresizingMask key="autoresizingMask"/>
1616
<subviews>
1717
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YJG-Nk-iyd">

Diff for: iDynamicForms/Utilities/iDynamicForms/Views/EmptyTableViewCell/EmptyTableViewCell.xib

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
1212
<autoresizingMask key="autoresizingMask"/>
1313
<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"/>
14+
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
1515
<autoresizingMask key="autoresizingMask"/>
1616
</tableViewCellContentView>
1717
<point key="canvasLocation" x="316" y="270"/>

Diff for: iDynamicForms/Utilities/iDynamicForms/Views/HeadTItleTableViewCell/HeadTitleTableViewCell.xib

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
1313
<autoresizingMask key="autoresizingMask"/>
1414
<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"/>
15+
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
1616
<autoresizingMask key="autoresizingMask"/>
1717
<subviews>
1818
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dummy_tblcl_bg.png" translatesAutoresizingMaskIntoConstraints="NO" id="tnb-2l-TRc">
@@ -40,7 +40,7 @@
4040
</constraints>
4141
</tableViewCellContentView>
4242
<color key="backgroundColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
43-
<point key="canvasLocation" x="575" y="485"/>
43+
<point key="canvasLocation" x="582" y="230"/>
4444
</tableViewCell>
4545
</objects>
4646
<resources>

Diff for: iDynamicForms/Utilities/iDynamicForms/Views/LinkTableViewCell/LinkTableViewCell.xib

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<rect key="frame" x="0.0" y="0.0" width="320" height="30"/>
1212
<autoresizingMask key="autoresizingMask"/>
1313
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="mF4-wZ-Sic" id="ku1-fF-AAw">
14-
<rect key="frame" x="0.0" y="0.0" width="320" height="30"/>
14+
<rect key="frame" x="0.0" y="0.0" width="320" height="29.5"/>
1515
<autoresizingMask key="autoresizingMask"/>
1616
<subviews>
1717
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" hasAttributedTitle="YES" translatesAutoresizingMaskIntoConstraints="NO" id="hR8-WQ-fbC">

0 commit comments

Comments
 (0)