Commit 2c008c5c by Javier Heisekce

agrega relacion de delegate para searchbar en view controller

parent c6f90fe8
...@@ -56,6 +56,7 @@ ...@@ -56,6 +56,7 @@
<navigationItem key="navigationItem" id="U0h-dc-vbE"/> <navigationItem key="navigationItem" id="U0h-dc-vbE"/>
<connections> <connections>
<outlet property="contactsTable" destination="dBj-cU-Ugw" id="8YS-LO-fy0"/> <outlet property="contactsTable" destination="dBj-cU-Ugw" id="8YS-LO-fy0"/>
<outlet property="searchBar" destination="2yO-jM-dTD" id="4EW-JC-tfj"/>
<segue destination="i2T-MY-6qf" kind="show" identifier="gotocontact" id="1Ts-QM-UT7"/> <segue destination="i2T-MY-6qf" kind="show" identifier="gotocontact" id="1Ts-QM-UT7"/>
</connections> </connections>
</viewController> </viewController>
......
...@@ -11,6 +11,7 @@ import ContactsUI ...@@ -11,6 +11,7 @@ import ContactsUI
class ContactsViewController: UIViewController { class ContactsViewController: UIViewController {
@IBOutlet weak var searchBar: UISearchBar!
@IBOutlet weak var contactsTable: UITableView! @IBOutlet weak var contactsTable: UITableView!
var contactStructArray = [ContactStruct]() var contactStructArray = [ContactStruct]()
var contactStruct : ContactStruct? var contactStruct : ContactStruct?
......
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