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
553a1efd
Commit
553a1efd
authored
Mar 24, 2020
by
Javier Heisekce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
agrega estilo a los nombres en la tabla
parent
6bf83153
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
ContactsApp/ContactsViewController.swift
+11
-2
No files found.
ContactsApp/ContactsViewController.swift
View file @
553a1efd
...
...
@@ -85,8 +85,17 @@ extension ContactsViewController: UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"contactName"
)
!
let
contactCell
=
contactStructArray
[
indexPath
.
section
]
.
contacts
[
indexPath
.
row
]
cell
.
textLabel
?
.
text
=
"
\(
contactCell
.
givenName
)
\(
contactCell
.
familyName
)
"
let
givenName
=
"
\(
contactCell
.
givenName
)
"
let
familyName
:
NSMutableAttributedString
=
NSMutableAttributedString
(
string
:
contactCell
.
familyName
)
let
attributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
.
font
:
UIFont
.
boldSystemFont
(
ofSize
:
15
)
]
let
fullName
=
NSMutableAttributedString
(
string
:
givenName
,
attributes
:
attributes
)
fullName
.
append
(
familyName
)
cell
.
textLabel
?
.
attributedText
=
fullName
return
cell
}
...
...
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