Skip to content

Commit

Permalink
Removed deprecated properties
Browse files Browse the repository at this point in the history
  • Loading branch information
hackiftekhar committed Oct 8, 2018
1 parent b0418a1 commit ec11dca
Show file tree
Hide file tree
Showing 14 changed files with 80 additions and 216 deletions.
8 changes: 4 additions & 4 deletions Demo/Objective_C_Demo/Storyboard/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="ko2-SX-mJs">
<rect key="frame" x="16" y="28" width="264" height="143.5"/>
<autoresizingMask key="autoresizingMask"/>
<string key="text">- enable
- shouldToolbarUsesTextFieldTintColor
- keyboardDistanceFromTextField
- shouldShowTextFieldPlaceholder
- placeholderFont
- keyboardDistanceFromTextField (Category)
- IQTextView (Class)
- setCustomPreviousTarget: action: (Category)
- setCustomNextTarget: action: (Category)
- setCustomDoneTarget: action: (Category)</string>
<string key="text">- enable
- shouldToolbarUsesTextFieldTintColor
- keyboardDistanceFromTextField
- shouldShowToolbarPlaceholder
- placeholderFont
- keyboardDistanceFromTextField (Category)
- IQTextView (Class)
- setCustomPreviousTarget: action: (Category)
- setCustomNextTarget: action: (Category)
- setCustomDoneTarget: action: (Category)</string>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
Expand All @@ -63,9 +63,9 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="KuD-1z-36f">
<rect key="frame" x="16" y="30.5" width="227.5" height="158"/>
<rect key="frame" x="16" y="30.5" width="245.5" height="158"/>
<autoresizingMask key="autoresizingMask"/>
<string key="text">- enableAutoToolbar
- toolbarManageBehaviour
- overrideKeyboardAppearance
- keyboardAppearance
- shouldResignOnTouchOutside
- IQKeyboardReturnKeyHandler (Class)
- shouldHidePlaceholderText (Category)
- placeholderText (Category)
- toolbarTintColor
- toolbarDoneBarButtonItemImage
- toolbarDoneBarButtonItemText</string>
<string key="text">- enableAutoToolbar
- toolbarManageBehaviour
- overrideKeyboardAppearance
- keyboardAppearance
- shouldResignOnTouchOutside
- IQKeyboardReturnKeyHandler (Class)
- shouldHideToolbarPlaceholder (Category)
- toolbarPlaceholder (Category)
- toolbarTintColor
- toolbarDoneBarButtonItemImage
- toolbarDoneBarButtonItemText</string>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" white="0.33333333333333331" alpha="1" colorSpace="calibratedWhite"/>
<nil key="highlightedColor"/>
Expand Down Expand Up @@ -584,7 +584,7 @@
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="iFF-SZ-t3m" sceneMemberID="viewController">
<toolbarItems/>
<navigationBar key="navigationBar" contentMode="scaleToFill" largeTitles="YES" id="sxS-VT-UFI">
<rect key="frame" x="0.0" y="20" width="320" height="93"/>
<rect key="frame" x="0.0" y="20" width="320" height="96"/>
<autoresizingMask key="autoresizingMask"/>
</navigationBar>
<nil name="viewControllers"/>
Expand Down
8 changes: 4 additions & 4 deletions Demo/Objective_C_Demo/Storyboard/ar.lproj/Main.strings
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
/* Class = "UILabel"; text = "UITableView inside UIScrollView"; ObjectID = "JUG-pm-L0a"; */
"JUG-pm-L0a.text" = "UITableView inside UIScrollView";

/* Class = "UILabel"; text = "- enableAutoToolbar
- toolbarManageBehaviour
- overrideKeyboardAppearance
- keyboardAppearance
- shouldResignOnTouchOutside
- IQKeyboardReturnKeyHandler (Class)
- shouldHidePlaceholderText (Category)
- placeholderText (Category)
- toolbarTintColor
- toolbarDoneBarButtonItemImage
- toolbarDoneBarButtonItemText"; ObjectID = "KuD-1z-36f"; */
"KuD-1z-36f.text" = "- enableAutoToolbar
- toolbarManageBehaviour
- overrideKeyboardAppearance
- keyboardAppearance
- shouldResignOnTouchOutside
- IQKeyboardReturnKeyHandler (Class)
- shouldHidePlaceholderText (Category)
- placeholderText (Category)
- toolbarTintColor
- toolbarDoneBarButtonItemImage
- toolbarDoneBarButtonItemText";
/* Class = "UILabel"; text = "- enableAutoToolbar
- toolbarManageBehaviour
- overrideKeyboardAppearance
- keyboardAppearance
- shouldResignOnTouchOutside
- IQKeyboardReturnKeyHandler (Class)
- shouldHideToolbarPlaceholder (Category)
- toolbarPlaceholder (Category)
- toolbarTintColor
- toolbarDoneBarButtonItemImage
- toolbarDoneBarButtonItemText"; ObjectID = "KuD-1z-36f"; */
"KuD-1z-36f.text" = "- enableAutoToolbar
- toolbarManageBehaviour
- overrideKeyboardAppearance
- keyboardAppearance
- shouldResignOnTouchOutside
- IQKeyboardReturnKeyHandler (Class)
- shouldHideToolbarPlaceholder (Category)
- toolbarPlaceholder (Category)
- toolbarTintColor
- toolbarDoneBarButtonItemImage
- toolbarDoneBarButtonItemText";

/* Class = "UILabel"; text = "Text Selection"; ObjectID = "WIY-wJ-lgq"; */
"WIY-wJ-lgq.text" = "Text Selection";
Expand Down Expand Up @@ -101,8 +101,8 @@
/* Class = "UILabel"; text = "UITextField/UITextView example"; ObjectID = "itr-sp-j54"; */
"itr-sp-j54.text" = "UITextField/UITextView example";

/* Class = "UILabel"; text = "- enable
- shouldToolbarUsesTextFieldTintColor
- keyboardDistanceFromTextField
- shouldShowTextFieldPlaceholder
- placeholderFont
- keyboardDistanceFromTextField (Category)
- IQTextView (Class)
- setCustomPreviousTarget: action: (Category)
- setCustomNextTarget: action: (Category)
- setCustomDoneTarget: action: (Category)"; ObjectID = "ko2-SX-mJs"; */
"ko2-SX-mJs.text" = "- enable
- shouldToolbarUsesTextFieldTintColor
- keyboardDistanceFromTextField
- shouldShowTextFieldPlaceholder
- placeholderFont
- keyboardDistanceFromTextField (Category)
- IQTextView (Class)
- setCustomPreviousTarget: action: (Category)
- setCustomNextTarget: action: (Category)
- setCustomDoneTarget: action: (Category)";
/* Class = "UILabel"; text = "- enable
- shouldToolbarUsesTextFieldTintColor
- keyboardDistanceFromTextField
- shouldShowToolbarPlaceholder
- placeholderFont
- keyboardDistanceFromTextField (Category)
- IQTextView (Class)
- setCustomPreviousTarget: action: (Category)
- setCustomNextTarget: action: (Category)
- setCustomDoneTarget: action: (Category)"; ObjectID = "ko2-SX-mJs"; */
"ko2-SX-mJs.text" = "- enable
- shouldToolbarUsesTextFieldTintColor
- keyboardDistanceFromTextField
- shouldShowToolbarPlaceholder
- placeholderFont
- keyboardDistanceFromTextField (Category)
- IQTextView (Class)
- setCustomPreviousTarget: action: (Category)
- setCustomNextTarget: action: (Category)
- setCustomDoneTarget: action: (Category)";

/* Class = "UILabel"; text = "Search Controller"; ObjectID = "sfy-kL-TLi"; */
"sfy-kL-TLi.text" = "Search Controller";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ - (void)shouldToolbarUsesTextFieldTintColorAction:(UISwitch *)sender
[[IQKeyboardManager sharedManager] setShouldToolbarUsesTextFieldTintColor:sender.on];
}

- (void)shouldShowTextFieldPlaceholder:(UISwitch *)sender
- (void)shouldShowToolbarPlaceholder:(UISwitch *)sender
{
[[IQKeyboardManager sharedManager] setShouldShowToolbarPlaceholder:sender.on];

Expand Down Expand Up @@ -291,7 +291,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cell.labelSubtitle.text = keyboardManagerPropertyDetails[indexPath.section][indexPath.row];
cell.switchEnable.on = [[IQKeyboardManager sharedManager] shouldShowToolbarPlaceholder];
[cell.switchEnable removeTarget:nil action:NULL forControlEvents:UIControlEventAllEvents];
[cell.switchEnable addTarget:self action:@selector(shouldShowTextFieldPlaceholder:) forControlEvents:UIControlEventValueChanged];
[cell.switchEnable addTarget:self action:@selector(shouldShowToolbarPlaceholder:) forControlEvents:UIControlEventValueChanged];
return cell;
}
break;
Expand Down
Loading

0 comments on commit ec11dca

Please sign in to comment.