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
b54858a1
Commit
b54858a1
authored
Apr 08, 2020
by
Javier Heisekce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Arregla tamaño de imagen
parent
7abcdb34
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
ContactsApp/Base.lproj/Main.storyboard
+1
-1
ContactsApp/SingleContactViewController.swift
+4
-1
No files found.
ContactsApp/Base.lproj/Main.storyboard
View file @
b54858a1
...
...
@@ -72,7 +72,7 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"667"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFi
t
"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"SSh-qK-Te0"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFi
ll
"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"SSh-qK-Te0"
>
<rect
key=
"frame"
x=
"137"
y=
"69"
width=
"100"
height=
"100"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"100"
id=
"n9x-Ru-z25"
/>
...
...
ContactsApp/SingleContactViewController.swift
View file @
b54858a1
...
...
@@ -39,7 +39,10 @@ class SingleContactViewController: UIViewController {
otherPhoneNumber
.
isHidden
=
false
}
if
let
image
=
contact
.
imageData
{
profilePic
.
layer
.
cornerRadius
=
profilePic
.
frame
.
height
/
2
profilePic
.
layer
.
cornerRadius
=
(
profilePic
?
.
frame
.
width
??
0.0
)
/
2
profilePic
.
clipsToBounds
=
true
profilePic
.
layer
.
borderWidth
=
3.0
profilePic
?
.
layer
.
borderColor
=
UIColor
.
white
.
cgColor
if
let
imageData
=
UIImage
(
data
:
image
){
profilePic
.
image
=
imageData
}
...
...
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