Commit 8fc25034 by Javier Heisekce

Se agrega celda personalizada a implementar

parent 553a1efd
......@@ -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 = "<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>"; };
CED5EAC1242A509800E22547 /* ContactSectionTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactSectionTableViewCell.swift; sourceTree = "<group>"; };
CED5EAC1242A509800E22547 /* ContactSectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactSectionView.swift; sourceTree = "<group>"; };
/* 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 = "<group>";
......@@ -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 */,
......
......@@ -19,9 +19,17 @@
<rect key="frame" x="0.0" y="44" width="375" height="623"/>
<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">
<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"/>
<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">
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
......
<?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>
//
// 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"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment