From 8fc250347939206a936d4599287ce16a4ff35deb Mon Sep 17 00:00:00 2001 From: Javier Heisekce Date: Tue, 24 Mar 2020 12:40:03 -0400 Subject: [PATCH] Se agrega celda personalizada a implementar --- ContactsApp.xcodeproj/project.pbxproj | 8 ++++---- ContactsApp/Base.lproj/Main.storyboard | 10 +++++++++- ContactsApp/ContactSection.xib | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ ContactsApp/ContactSectionView.swift | 21 +++++++++++++++++++++ 4 files changed, 82 insertions(+), 5 deletions(-) create mode 100644 ContactsApp/ContactSection.xib create mode 100644 ContactsApp/ContactSectionView.swift diff --git a/ContactsApp.xcodeproj/project.pbxproj b/ContactsApp.xcodeproj/project.pbxproj index 7d5aecf..b8422e0 100644 --- a/ContactsApp.xcodeproj/project.pbxproj +++ b/ContactsApp.xcodeproj/project.pbxproj @@ -16,7 +16,7 @@ CEC9A37F241BFBD000F024EE /* ContactsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEC9A37E241BFBD000F024EE /* ContactsViewController.swift */; }; CEC9A381241C096D00F024EE /* SingleContactViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEC9A380241C096D00F024EE /* SingleContactViewController.swift */; }; CED5EABE242A4CF800E22547 /* ContactSection.xib in Resources */ = {isa = PBXBuildFile; fileRef = CED5EABD242A4CF800E22547 /* ContactSection.xib */; }; - CED5EAC2242A509800E22547 /* ContactSectionTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = CED5EAC1242A509800E22547 /* ContactSectionTableViewCell.swift */; }; + CED5EAC2242A509800E22547 /* ContactSectionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CED5EAC1242A509800E22547 /* ContactSectionView.swift */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -31,7 +31,7 @@ CEC9A37E241BFBD000F024EE /* ContactsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactsViewController.swift; sourceTree = ""; }; CEC9A380241C096D00F024EE /* SingleContactViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SingleContactViewController.swift; sourceTree = ""; }; CED5EABD242A4CF800E22547 /* ContactSection.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ContactSection.xib; sourceTree = ""; }; - CED5EAC1242A509800E22547 /* ContactSectionTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactSectionTableViewCell.swift; sourceTree = ""; }; + CED5EAC1242A509800E22547 /* ContactSectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactSectionView.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -74,7 +74,7 @@ CEC9A380241C096D00F024EE /* SingleContactViewController.swift */, CEC259D7241FAC79005237F5 /* ContactStruct.swift */, CED5EABD242A4CF800E22547 /* ContactSection.xib */, - CED5EAC1242A509800E22547 /* ContactSectionTableViewCell.swift */, + CED5EAC1242A509800E22547 /* ContactSectionView.swift */, ); path = ContactsApp; sourceTree = ""; @@ -151,7 +151,7 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - CED5EAC2242A509800E22547 /* ContactSectionTableViewCell.swift in Sources */, + CED5EAC2242A509800E22547 /* ContactSectionView.swift in Sources */, CEC259D8241FAC79005237F5 /* ContactStruct.swift in Sources */, CE3351EC241A65D400BA57CA /* AppDelegate.swift in Sources */, CEC9A37F241BFBD000F024EE /* ContactsViewController.swift in Sources */, diff --git a/ContactsApp/Base.lproj/Main.storyboard b/ContactsApp/Base.lproj/Main.storyboard index e26ee0d..f1051fd 100644 --- a/ContactsApp/Base.lproj/Main.storyboard +++ b/ContactsApp/Base.lproj/Main.storyboard @@ -19,9 +19,17 @@ - + + + + + + + + + diff --git a/ContactsApp/ContactSection.xib b/ContactsApp/ContactSection.xib new file mode 100644 index 0000000..0c34df4 --- /dev/null +++ b/ContactsApp/ContactSection.xib @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ContactsApp/ContactSectionView.swift b/ContactsApp/ContactSectionView.swift new file mode 100644 index 0000000..b2c0db1 --- /dev/null +++ b/ContactsApp/ContactSectionView.swift @@ -0,0 +1,21 @@ +// +// 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" + } + +} -- libgit2 0.26.0