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
c6f90fe8
Commit
c6f90fe8
authored
Apr 08, 2020
by
Javier Heisekce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cambios iniciales para search bar
parent
e2c874c1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
ContactsApp/Base.lproj/Main.storyboard
+12
-2
ContactsApp/ContactsViewController.swift
+1
-0
No files found.
ContactsApp/Base.lproj/Main.storyboard
View file @
c6f90fe8
...
...
@@ -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>
...
...
ContactsApp/ContactsViewController.swift
View file @
c6f90fe8
...
...
@@ -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
()
{
...
...
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