Commit c6f90fe8 by Javier Heisekce

Cambios iniciales para search bar

parent e2c874c1
......@@ -16,7 +16,7 @@
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="dBj-cU-Ugw">
<rect key="frame" x="0.0" y="44" width="375" height="623"/>
<rect key="frame" x="0.0" y="100" width="375" height="567"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="default" indentationWidth="10" reuseIdentifier="contactName" id="QkB-8k-kbX">
......@@ -33,11 +33,21 @@
<outlet property="delegate" destination="l7R-c3-U8p" id="pgD-yj-lEC"/>
</connections>
</tableView>
<searchBar contentMode="redraw" translatesAutoresizingMaskIntoConstraints="NO" id="2yO-jM-dTD">
<rect key="frame" x="0.0" y="44" width="375" height="56"/>
<textInputTraits key="textInputTraits"/>
<connections>
<outlet property="delegate" destination="U0h-dc-vbE" id="LUn-MP-HEY"/>
</connections>
</searchBar>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="dBj-cU-Ugw" firstAttribute="top" secondItem="2yO-jM-dTD" secondAttribute="bottom" id="8nd-C7-lbC"/>
<constraint firstItem="ig1-pz-8Nn" firstAttribute="trailing" secondItem="dBj-cU-Ugw" secondAttribute="trailing" id="HCT-3z-lWu"/>
<constraint firstItem="dBj-cU-Ugw" firstAttribute="top" secondItem="ig1-pz-8Nn" secondAttribute="top" id="NqI-Ku-x9S"/>
<constraint firstItem="2yO-jM-dTD" firstAttribute="top" secondItem="ig1-pz-8Nn" secondAttribute="top" id="Id5-HP-nkN"/>
<constraint firstItem="2yO-jM-dTD" firstAttribute="trailing" secondItem="ig1-pz-8Nn" secondAttribute="trailing" id="b9K-lU-zTt"/>
<constraint firstItem="2yO-jM-dTD" firstAttribute="leading" secondItem="ig1-pz-8Nn" secondAttribute="leading" id="dOI-p7-1BY"/>
<constraint firstItem="dBj-cU-Ugw" firstAttribute="leading" secondItem="ig1-pz-8Nn" secondAttribute="leading" id="ecL-bI-50d"/>
<constraint firstItem="ig1-pz-8Nn" firstAttribute="bottom" secondItem="dBj-cU-Ugw" secondAttribute="bottom" id="ydk-Ee-Ybk"/>
</constraints>
......
......@@ -21,6 +21,7 @@ class ContactsViewController: UIViewController {
contactsTable.register(UINib(nibName: "ContactSection", bundle: nil), forHeaderFooterViewReuseIdentifier: "headerId")
importContacts()
contactsTable.tableFooterView = UIView(frame: .zero)
searchBar.placeholder = NSLocalizedString("Nombre...", comment: "")
}
func importContacts() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment