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
8fc25034
Commit
8fc25034
authored
Mar 24, 2020
by
Javier Heisekce
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se agrega celda personalizada a implementar
parent
553a1efd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
5 deletions
+82
-5
ContactsApp.xcodeproj/project.pbxproj
+4
-4
ContactsApp/Base.lproj/Main.storyboard
+9
-1
ContactsApp/ContactSection.xib
+48
-0
ContactsApp/ContactSectionView.swift
+21
-0
No files found.
ContactsApp.xcodeproj/project.pbxproj
View file @
8fc25034
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
CEC9A37F241BFBD000F024EE
/* ContactsViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CEC9A37E241BFBD000F024EE
/* ContactsViewController.swift */
;
};
CEC9A37F241BFBD000F024EE
/* ContactsViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CEC9A37E241BFBD000F024EE
/* ContactsViewController.swift */
;
};
CEC9A381241C096D00F024EE
/* SingleContactViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CEC9A380241C096D00F024EE
/* SingleContactViewController.swift */
;
};
CEC9A381241C096D00F024EE
/* SingleContactViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CEC9A380241C096D00F024EE
/* SingleContactViewController.swift */
;
};
CED5EABE242A4CF800E22547
/* ContactSection.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CED5EABD242A4CF800E22547
/* ContactSection.xib */
;
};
CED5EABE242A4CF800E22547
/* ContactSection.xib in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CED5EABD242A4CF800E22547
/* ContactSection.xib */
;
};
CED5EAC2242A509800E22547
/* ContactSection
TableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CED5EAC1242A509800E22547
/* ContactSectionTableViewCell
.swift */
;
};
CED5EAC2242A509800E22547
/* ContactSection
View.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CED5EAC1242A509800E22547
/* ContactSectionView
.swift */
;
};
/* End PBXBuildFile section */
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
/* Begin PBXFileReference section */
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
CEC9A37E241BFBD000F024EE
/* ContactsViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ContactsViewController.swift
;
sourceTree
=
"<group>"
;
};
CEC9A37E241BFBD000F024EE
/* ContactsViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ContactsViewController.swift
;
sourceTree
=
"<group>"
;
};
CEC9A380241C096D00F024EE
/* SingleContactViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SingleContactViewController.swift
;
sourceTree
=
"<group>"
;
};
CEC9A380241C096D00F024EE
/* SingleContactViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SingleContactViewController.swift
;
sourceTree
=
"<group>"
;
};
CED5EABD242A4CF800E22547
/* ContactSection.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ContactSection.xib
;
sourceTree
=
"<group>"
;
};
CED5EABD242A4CF800E22547
/* ContactSection.xib */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
file.xib
;
path
=
ContactSection.xib
;
sourceTree
=
"<group>"
;
};
CED5EAC1242A509800E22547
/* ContactSection
TableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ContactSectionTableViewCell
.swift
;
sourceTree
=
"<group>"
;
};
CED5EAC1242A509800E22547
/* ContactSection
View.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ContactSectionView
.swift
;
sourceTree
=
"<group>"
;
};
/* End PBXFileReference section */
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
/* Begin PBXFrameworksBuildPhase section */
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
CEC9A380241C096D00F024EE
/* SingleContactViewController.swift */
,
CEC9A380241C096D00F024EE
/* SingleContactViewController.swift */
,
CEC259D7241FAC79005237F5
/* ContactStruct.swift */
,
CEC259D7241FAC79005237F5
/* ContactStruct.swift */
,
CED5EABD242A4CF800E22547
/* ContactSection.xib */
,
CED5EABD242A4CF800E22547
/* ContactSection.xib */
,
CED5EAC1242A509800E22547
/* ContactSection
TableViewCell
.swift */
,
CED5EAC1242A509800E22547
/* ContactSection
View
.swift */
,
);
);
path
=
ContactsApp
;
path
=
ContactsApp
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
isa
=
PBXSourcesBuildPhase
;
isa
=
PBXSourcesBuildPhase
;
buildActionMask
=
2147483647
;
buildActionMask
=
2147483647
;
files
=
(
files
=
(
CED5EAC2242A509800E22547
/* ContactSection
TableViewCell
.swift in Sources */
,
CED5EAC2242A509800E22547
/* ContactSection
View
.swift in Sources */
,
CEC259D8241FAC79005237F5
/* ContactStruct.swift in Sources */
,
CEC259D8241FAC79005237F5
/* ContactStruct.swift in Sources */
,
CE3351EC241A65D400BA57CA
/* AppDelegate.swift in Sources */
,
CE3351EC241A65D400BA57CA
/* AppDelegate.swift in Sources */
,
CEC9A37F241BFBD000F024EE
/* ContactsViewController.swift in Sources */
,
CEC9A37F241BFBD000F024EE
/* ContactsViewController.swift in Sources */
,
...
...
ContactsApp/Base.lproj/Main.storyboard
View file @
8fc25034
...
@@ -19,9 +19,17 @@
...
@@ -19,9 +19,17 @@
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"375"
height=
"623"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"375"
height=
"623"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<prototypes>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"contactName"
id=
"QkB-8k-kbX
"
>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"default"
indentationWidth=
"10"
id=
"l8U-st-Wic
"
>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"375"
height=
"43.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"28"
width=
"375"
height=
"43.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
preservesSuperviewLayoutMargins=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"l8U-st-Wic"
id=
"FAe-5V-uSO"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"43.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
</tableViewCellContentView>
</tableViewCell>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
preservesSuperviewLayoutMargins=
"YES"
selectionStyle=
"default"
indentationWidth=
"10"
reuseIdentifier=
"contactName"
id=
"QkB-8k-kbX"
>
<rect
key=
"frame"
x=
"0.0"
y=
"71.5"
width=
"375"
height=
"43.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
preservesSuperviewLayoutMargins=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"QkB-8k-kbX"
id=
"AMU-de-w3M"
>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
preservesSuperviewLayoutMargins=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"QkB-8k-kbX"
id=
"AMU-de-w3M"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"43.5"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"43.5"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
...
...
ContactsApp/ContactSection.xib
0 → 100644
View file @
8fc25034
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"15705"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_1"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"15706"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"-2"
customClass=
"UIResponder"
/>
<view
contentMode=
"scaleToFill"
id=
"iN0-l3-epB"
customClass=
"ContactSectionView"
customModule=
"ContactsApp"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"40"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2Vg-Y7-9zD"
>
<rect
key=
"frame"
x=
"335"
y=
"1"
width=
"30"
height=
"38"
/>
<fontDescription
key=
"fontDescription"
type=
"boldSystem"
pointSize=
"18"
/>
<state
key=
"normal"
title=
"V"
>
<color
key=
"titleColor"
cocoaTouchSystemColor=
"darkTextColor"
/>
</state>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"A"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"rgh-bc-PuT"
>
<rect
key=
"frame"
x=
"16"
y=
"1"
width=
"13"
height=
"38"
/>
<fontDescription
key=
"fontDescription"
type=
"boldSystem"
pointSize=
"19"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"0.90924546632124348"
green=
"0.90924546632124348"
blue=
"0.90924546632124348"
alpha=
"0.59999999999999998"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"bottom"
secondItem=
"2Vg-Y7-9zD"
secondAttribute=
"bottom"
constant=
"1"
id=
"M1Z-qU-8CJ"
/>
<constraint
firstItem=
"rgh-bc-PuT"
firstAttribute=
"leading"
secondItem=
"vUN-kp-3ea"
secondAttribute=
"leading"
constant=
"16"
id=
"PMm-R4-l0c"
/>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"bottom"
secondItem=
"rgh-bc-PuT"
secondAttribute=
"bottom"
constant=
"1"
id=
"bwV-nP-4Be"
/>
<constraint
firstItem=
"rgh-bc-PuT"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
constant=
"1"
id=
"jpL-Q5-uFf"
/>
<constraint
firstItem=
"vUN-kp-3ea"
firstAttribute=
"trailing"
secondItem=
"2Vg-Y7-9zD"
secondAttribute=
"trailing"
constant=
"10"
id=
"v72-Mg-EtS"
/>
<constraint
firstItem=
"2Vg-Y7-9zD"
firstAttribute=
"top"
secondItem=
"iN0-l3-epB"
secondAttribute=
"top"
constant=
"1"
id=
"xnd-eH-r7r"
/>
</constraints>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"vUN-kp-3ea"
/>
<connections>
<outlet
property=
"labelExpandable"
destination=
"2Vg-Y7-9zD"
id=
"QA5-cx-9Kb"
/>
<outlet
property=
"labelLetter"
destination=
"rgh-bc-PuT"
id=
"5UQ-6S-OzP"
/>
</connections>
<point
key=
"canvasLocation"
x=
"93.478260869565219"
y=
"-213.61607142857142"
/>
</view>
</objects>
</document>
ContactsApp/ContactSectionView.swift
0 → 100644
View file @
8fc25034
//
// ContactSectionTableViewCell.swift
// ContactsApp
//
// Created by User on 3/24/20.
// Copyright © 2020 jheisecke. All rights reserved.
//
import
UIKit
class
ContactSectionView
:
UIView
{
@IBOutlet
weak
var
labelLetter
:
UILabel
!
@IBOutlet
weak
var
labelExpandable
:
UIButton
!
override
func
draw
(
_
rect
:
CGRect
)
{
super
.
draw
(
rect
)
//title.text = "Jahata"
}
}
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