mirror of
https://github.com/bitwarden/mobile
synced 2025-02-02 11:37:14 +01:00
Adjust pin lock page to listen for EditingChanged
This commit is contained in:
parent
1fffeb5614
commit
1a9d58eecc
@ -18,9 +18,9 @@ namespace Bit.iOS.Extension
|
||||
[GeneratedCode ("iOS Designer", "1.0")]
|
||||
UIKit.UIBarButtonItem CancelButton { get; set; }
|
||||
|
||||
[Action("CancelButton_Activated:")]
|
||||
[GeneratedCode("iOS Designer", "1.0")]
|
||||
partial void CancelButton_Activated(UIKit.UIBarButtonItem sender);
|
||||
[Action ("CancelButton_Activated:")]
|
||||
[GeneratedCode ("iOS Designer", "1.0")]
|
||||
partial void CancelButton_Activated (UIKit.UIBarButtonItem sender);
|
||||
|
||||
void ReleaseDesignerOutlets ()
|
||||
{
|
||||
|
@ -38,7 +38,7 @@ namespace Bit.iOS.Extension
|
||||
var descriptor = UIFontDescriptor.PreferredBody;
|
||||
PinLabel.Font = UIFont.FromName("Courier", descriptor.PointSize * 1.3f);
|
||||
|
||||
PinTextField.ValueChanged += PinTextField_ValueChanged;
|
||||
PinTextField.EditingChanged += PinTextField_EditingChanged;
|
||||
|
||||
base.ViewDidLoad();
|
||||
}
|
||||
@ -49,7 +49,7 @@ namespace Bit.iOS.Extension
|
||||
PinTextField.BecomeFirstResponder();
|
||||
}
|
||||
|
||||
private void PinTextField_ValueChanged(object sender, EventArgs e)
|
||||
private void PinTextField_EditingChanged(object sender, EventArgs e)
|
||||
{
|
||||
var newText = string.Empty;
|
||||
for(int i = 0; i < 4; i++)
|
||||
|
@ -40,7 +40,7 @@
|
||||
<objects>
|
||||
<navigationController definesPresentationContext="YES" id="64" sceneMemberID="viewController">
|
||||
<navigationBar key="navigationBar" contentMode="scaleToFill" id="67" translucent="NO" hidden="YES">
|
||||
<rect key="frame" x="0.0" y="20" width="880" height="44"/>
|
||||
<rect key="frame" x="0.0" y="20" width="600" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
</navigationBar>
|
||||
<connections>
|
||||
@ -57,7 +57,7 @@
|
||||
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="oCZ-GQ-aOK" sceneMemberID="viewController">
|
||||
<toolbarItems/>
|
||||
<navigationBar key="navigationBar" contentMode="scaleToFill" id="8A5-AR-QHS" translucent="NO">
|
||||
<rect key="frame" x="0.0" y="20" width="880" height="44"/>
|
||||
<rect key="frame" x="0.0" y="20" width="600" height="44"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<textAttributes key="titleTextAttributes">
|
||||
<color key="textColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
||||
@ -78,7 +78,7 @@
|
||||
<navigationController definesPresentationContext="YES" id="1845" sceneMemberID="viewController">
|
||||
<navigationBar key="navigationBar" contentMode="scaleToFill" id="1848" translucent="NO">
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<rect key="frame" x="0.0" y="20" width="880" height="44"/>
|
||||
<rect key="frame" x="0.0" y="20" width="600" height="44"/>
|
||||
<textAttributes key="titleTextAttributes">
|
||||
<color key="textColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
||||
</textAttributes>
|
||||
@ -203,7 +203,7 @@
|
||||
<navigationController definesPresentationContext="YES" id="4574" sceneMemberID="viewController">
|
||||
<navigationBar key="navigationBar" contentMode="scaleToFill" id="4577" translucent="NO">
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<rect key="frame" x="0.0" y="20" width="880" height="44"/>
|
||||
<rect key="frame" x="0.0" y="20" width="600" height="44"/>
|
||||
<color key="barTintColor" colorSpace="calibratedRGB" red="0.23529411764705882" green="0.55294117647058827" blue="0.73725490196078436" alpha="1"/>
|
||||
<textAttributes key="titleTextAttributes">
|
||||
<color key="textColor" colorSpace="calibratedWhite" white="1" alpha="1"/>
|
||||
@ -301,7 +301,7 @@
|
||||
<navigationController definesPresentationContext="YES" id="6512" sceneMemberID="viewController">
|
||||
<navigationBar key="navigationBar" contentMode="scaleToFill" id="6515">
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<rect key="frame" x="0.0" y="20" width="880" height="44"/>
|
||||
<rect key="frame" x="0.0" y="20" width="600" height="44"/>
|
||||
</navigationBar>
|
||||
<connections>
|
||||
<segue destination="6514" kind="relationship" relationship="rootViewController" id="6513"/>
|
||||
@ -366,14 +366,6 @@
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<subviews>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" minimumFontSize="17" id="7350" translatesAutoresizingMaskIntoConstraints="NO" textAlignment="center" text="- - - -">
|
||||
<rect key="frame" x="30" y="84" width="540" height="60"/>
|
||||
<fontDescription key="fontDescription" name="Courier-BoldOblique" family="Courier" pointSize="14"/>
|
||||
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
|
||||
<color key="backgroundColor" colorSpace="calibratedWhite" white="0" alpha="0"/>
|
||||
<color key="tintColor" colorSpace="calibratedWhite" white="0" alpha="0"/>
|
||||
<color key="textColor" colorSpace="calibratedWhite" white="0" alpha="0"/>
|
||||
</textField>
|
||||
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="- - - -" lineBreakMode="tailTruncation" minimumFontSize="10" id="7373" translatesAutoresizingMaskIntoConstraints="NO" textAlignment="center">
|
||||
<rect key="frame" x="30" y="104" width="540" height="17"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
@ -381,14 +373,23 @@
|
||||
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" minimumFontSize="17" id="7350" translatesAutoresizingMaskIntoConstraints="NO" textAlignment="center">
|
||||
<rect key="frame" x="30" y="79" width="540" height="77"/>
|
||||
<fontDescription key="fontDescription" name="Courier-BoldOblique" family="Courier" pointSize="14"/>
|
||||
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
|
||||
<color key="backgroundColor" colorSpace="calibratedWhite" white="0" alpha="0"/>
|
||||
<color key="tintColor" colorSpace="calibratedWhite" white="0" alpha="0"/>
|
||||
<color key="textColor" colorSpace="calibratedWhite" white="0" alpha="0"/>
|
||||
</textField>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint id="7351" firstItem="7350" firstAttribute="leading" secondItem="6805" secondAttribute="leading" constant="30"/>
|
||||
<constraint id="7352" firstItem="6805" firstAttribute="trailing" secondItem="7350" secondAttribute="trailing" constant="30"/>
|
||||
<constraint id="7353" firstItem="7350" firstAttribute="top" secondItem="6812" secondAttribute="bottom" constant="20"/>
|
||||
<constraint id="7353" firstItem="7350" firstAttribute="top" secondItem="6812" secondAttribute="bottom" constant="15"/>
|
||||
<constraint id="7374" firstItem="7373" firstAttribute="leading" secondItem="6805" secondAttribute="leading" constant="30"/>
|
||||
<constraint id="7375" firstItem="6805" firstAttribute="trailing" secondItem="7373" secondAttribute="trailing" constant="30"/>
|
||||
<constraint id="7376" firstItem="7373" firstAttribute="top" secondItem="6812" secondAttribute="bottom" constant="40"/>
|
||||
<constraint id="7394" firstItem="7350" firstAttribute="height" secondItem="7373" secondAttribute="height" constant="60"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<navigationItem key="navigationItem" title="Verify PIN" id="6803">
|
||||
@ -413,7 +414,7 @@
|
||||
<navigationController definesPresentationContext="YES" id="6815" sceneMemberID="viewController">
|
||||
<navigationBar key="navigationBar" contentMode="scaleToFill" id="6817">
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<rect key="frame" x="0.0" y="20" width="880" height="44"/>
|
||||
<rect key="frame" x="0.0" y="20" width="600" height="44"/>
|
||||
</navigationBar>
|
||||
<connections>
|
||||
<segue destination="6802" kind="relationship" relationship="rootViewController" id="6816"/>
|
||||
@ -456,7 +457,7 @@
|
||||
<navigationController definesPresentationContext="YES" id="6855" sceneMemberID="viewController">
|
||||
<navigationBar key="navigationBar" contentMode="scaleToFill" id="6857">
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<rect key="frame" x="0.0" y="20" width="880" height="44"/>
|
||||
<rect key="frame" x="0.0" y="20" width="600" height="44"/>
|
||||
</navigationBar>
|
||||
<connections>
|
||||
<segue destination="6842" kind="relationship" relationship="rootViewController" id="6856"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user