Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
contactos-app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Javier Heisecke
contactos-app
Commits
8abc574c
Commit
8abc574c
authored
Apr 08, 2020
by
Javier Heisekce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Agrega funciones de search bar
parent
eb6c7e8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
ContactsApp/ContactsViewController.swift
+18
-1
No files found.
ContactsApp/ContactsViewController.swift
View file @
8abc574c
...
@@ -148,8 +148,25 @@ extension ContactsViewController: UITableViewDelegate, UITableViewDataSource {
...
@@ -148,8 +148,25 @@ extension ContactsViewController: UITableViewDelegate, UITableViewDataSource {
extension
ContactsViewController
:
UISearchBarDelegate
,
UISearchDisplayDelegate
,
UISearchResultsUpdating
{
extension
ContactsViewController
:
UISearchBarDelegate
,
UISearchDisplayDelegate
,
UISearchResultsUpdating
{
func
updateSearchResults
(
for
searchController
:
UISearchController
)
{
func
updateSearchResults
(
for
searchController
:
UISearchController
)
{
<
#
code
#
>
}
func
searchBarTextDidEndEditing
(
_
searchBar
:
UISearchBar
)
{
self
.
searchBar
.
showsCancelButton
=
false
}
}
func
searchBarTextDidBeginEditing
(
_
searchBar
:
UISearchBar
)
{
self
.
searchBar
.
showsCancelButton
=
true
self
.
searchBar
.
resignFirstResponder
()
}
func
searchBarCancelButtonClicked
(
_
searchBar
:
UISearchBar
)
{
self
.
searchBar
.
text
=
""
self
.
searchBarTextDidEndEditing
(
searchBar
)
self
.
searchBar
.
resignFirstResponder
()
}
func
searchBar
(
_
searchBar
:
UISearchBar
,
textDidChange
searchText
:
String
)
{
print
(
searchText
)
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment