Browse Source

Fix account field links

master
Dwayne Harris 6 years ago
parent
commit
240044da03
  1. 2
      elpha-ios/AccountTableViewController.swift
  2. 29
      elpha-ios/Base.lproj/Main.storyboard
  3. 2
      elpha-ios/FieldTableViewCell.swift

2
elpha-ios/AccountTableViewController.swift

@ -48,7 +48,7 @@ class FieldTableViewController: NSObject, UITableViewDelegate, UITableViewDataSo
"""
if let data = htmlString.data(using: String.Encoding.utf16) {
cell.valueLabel.attributedText = try NSAttributedString(
cell.valueTextView.attributedText = try NSAttributedString(
data: data,
options: [.documentType: NSAttributedString.DocumentType.html],
documentAttributes: nil

29
elpha-ios/Base.lproj/Main.storyboard

@ -627,30 +627,35 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Name" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mB7-gb-eAr">
<rect key="frame" x="23.000000000000004" y="12" width="35.333333333333343" height="15.666666666666664"/>
<rect key="frame" x="23.000000000000004" y="12" width="35.333333333333343" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="Secondary"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="Value" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QDH-zI-Pbc">
<rect key="frame" x="66.333333333333343" y="12" width="285.66666666666663" height="15.666666666666664"/>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" text="Value" textAlignment="right" translatesAutoresizingMaskIntoConstraints="NO" id="C63-Uw-F1z" customClass="UITextViewFixed" customModule="elpha_ios" customModuleProvider="target">
<rect key="frame" x="68.333333333333343" y="11" width="281.66666666666663" height="18"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="tintColor" name="Primary"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="13"/>
<constraints>
<constraint firstAttribute="height" constant="18" id="83I-iT-Ly1"/>
</constraints>
<color key="textColor" name="Text"/>
<nil key="highlightedColor"/>
</label>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits" autocorrectionType="no" spellCheckingType="no" smartDashesType="no" smartInsertDeleteType="no" smartQuotesType="no"/>
<dataDetectorType key="dataDetectorTypes" link="YES"/>
</textView>
</subviews>
<constraints>
<constraint firstAttribute="trailingMargin" secondItem="QDH-zI-Pbc" secondAttribute="trailing" constant="8" id="DLs-5d-vVu"/>
<constraint firstAttribute="trailingMargin" secondItem="C63-Uw-F1z" secondAttribute="trailing" constant="10" id="Cyo-5b-bjd"/>
<constraint firstItem="mB7-gb-eAr" firstAttribute="centerY" secondItem="c3e-LW-md8" secondAttribute="centerY" id="ERo-WH-lvG"/>
<constraint firstItem="C63-Uw-F1z" firstAttribute="centerY" secondItem="c3e-LW-md8" secondAttribute="centerY" id="Lf3-kd-1Ly"/>
<constraint firstItem="C63-Uw-F1z" firstAttribute="leading" secondItem="mB7-gb-eAr" secondAttribute="trailing" constant="10" id="Lwt-bU-uYO"/>
<constraint firstItem="mB7-gb-eAr" firstAttribute="leading" secondItem="c3e-LW-md8" secondAttribute="leadingMargin" constant="8" id="Mvh-Ku-V7L"/>
<constraint firstItem="QDH-zI-Pbc" firstAttribute="centerY" secondItem="c3e-LW-md8" secondAttribute="centerY" id="PHb-q2-CQS"/>
<constraint firstItem="QDH-zI-Pbc" firstAttribute="leading" secondItem="mB7-gb-eAr" secondAttribute="trailing" constant="8" id="Ut9-Br-Mbo"/>
<constraint firstItem="mB7-gb-eAr" firstAttribute="centerY" secondItem="c3e-LW-md8" secondAttribute="centerY" id="j5x-W6-OkH"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="nameLabel" destination="mB7-gb-eAr" id="WSF-Wm-EDv"/>
<outlet property="valueLabel" destination="QDH-zI-Pbc" id="ak7-ul-fXZ"/>
<outlet property="valueTextView" destination="C63-Uw-F1z" id="ebT-QB-lYN"/>
</connections>
</tableViewCell>
</prototypes>
@ -741,7 +746,7 @@
</tableViewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dWu-5e-ce7" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1634.7826086956522" y="359.51086956521743"/>
<point key="canvasLocation" x="1634.4000000000001" y="359.11330049261085"/>
</scene>
<!--Main Tab Bar Controller-->
<scene sceneID="yl2-sM-qoP">

2
elpha-ios/FieldTableViewCell.swift

@ -10,5 +10,5 @@ import UIKit
class FieldTableViewCell: UITableViewCell {
@IBOutlet var nameLabel: UILabel!
@IBOutlet var valueLabel: UILabel!
@IBOutlet var valueTextView: UITextViewFixed!
}
Loading…
Cancel
Save