-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#12] feat: Create PlayerInformationCell
커스텀 셀 생성
- Loading branch information
Showing
5 changed files
with
142 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// PlayerInformationCell.swift | ||
// Baseball | ||
// | ||
// Created by sonjuhyeong on 2021/05/07. | ||
// | ||
|
||
import UIKit | ||
|
||
class PlayerInformationCell: UITableViewCell { | ||
|
||
@IBOutlet weak var nameLabel: UILabel! | ||
@IBOutlet weak var atBatLabel: UILabel! | ||
@IBOutlet weak var hitLabel: UILabel! | ||
@IBOutlet weak var outLabel: UILabel! | ||
@IBOutlet weak var battingAverageLabel: UILabel! | ||
|
||
static let identifier = "PlayerInformationCell" | ||
|
||
override func awakeFromNib() { | ||
super.awakeFromNib() | ||
|
||
} | ||
|
||
static var nib: UINib { | ||
return UINib(nibName: identifier, bundle: nil) | ||
} | ||
|
||
override func setSelected(_ selected: Bool, animated: Bool) { | ||
super.setSelected(selected, animated: animated) | ||
} | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" 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="18093"/> | ||
<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"/> | ||
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="43" id="KGk-i7-Jjw" customClass="PlayerInformationCell" customModule="Baseball" customModuleProvider="target"> | ||
<rect key="frame" x="0.0" y="0.0" width="392" height="43"/> | ||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | ||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM"> | ||
<rect key="frame" x="0.0" y="0.0" width="392" height="43"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
<subviews> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="김광진" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="x5a-iI-0Zr"> | ||
<rect key="frame" x="15" y="11" width="44.5" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
<nil key="textColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Cuj-R6-pRc"> | ||
<rect key="frame" x="160" y="11" width="7.5" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
<nil key="textColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5zi-ql-dIz"> | ||
<rect key="frame" x="217.5" y="11" width="7.5" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
<nil key="textColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="VcI-RR-0NX"> | ||
<rect key="frame" x="275" y="11" width="7.5" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
<nil key="textColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0.003" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KA2-3Z-PRB"> | ||
<rect key="frame" x="332.5" y="11" width="44.5" height="21"/> | ||
<fontDescription key="fontDescription" type="system" pointSize="17"/> | ||
<nil key="textColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
</subviews> | ||
<constraints> | ||
<constraint firstItem="Cuj-R6-pRc" firstAttribute="leading" relation="lessThanOrEqual" secondItem="x5a-iI-0Zr" secondAttribute="trailing" constant="100.5" id="1cq-0P-qc2"/> | ||
<constraint firstItem="x5a-iI-0Zr" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="Akm-a9-jGu"/> | ||
<constraint firstItem="VcI-RR-0NX" firstAttribute="leading" secondItem="5zi-ql-dIz" secondAttribute="trailing" constant="50" id="SZr-Fn-0JE"/> | ||
<constraint firstItem="Cuj-R6-pRc" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="e8z-Oj-suc"/> | ||
<constraint firstItem="KA2-3Z-PRB" firstAttribute="leading" secondItem="VcI-RR-0NX" secondAttribute="trailing" constant="50" id="fqZ-qi-fzz"/> | ||
<constraint firstItem="KA2-3Z-PRB" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="fxR-7T-aTW"/> | ||
<constraint firstAttribute="trailing" secondItem="KA2-3Z-PRB" secondAttribute="trailing" constant="15" id="hlC-Qj-rIb"/> | ||
<constraint firstItem="x5a-iI-0Zr" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="hlT-ue-6uu"/> | ||
<constraint firstItem="VcI-RR-0NX" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="pmp-kJ-4B4"/> | ||
<constraint firstItem="5zi-ql-dIz" firstAttribute="leading" secondItem="Cuj-R6-pRc" secondAttribute="trailing" constant="50" id="rwV-nO-U3R"/> | ||
<constraint firstItem="5zi-ql-dIz" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="ydI-yz-fgi"/> | ||
</constraints> | ||
</tableViewCellContentView> | ||
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/> | ||
<connections> | ||
<outlet property="atBatLabel" destination="Cuj-R6-pRc" id="CXX-lN-YEY"/> | ||
<outlet property="battingAverageLabel" destination="KA2-3Z-PRB" id="jiu-Dj-wXp"/> | ||
<outlet property="hitLabel" destination="5zi-ql-dIz" id="jpI-xp-3Ck"/> | ||
<outlet property="nameLabel" destination="x5a-iI-0Zr" id="ccq-Me-UIn"/> | ||
<outlet property="outLabel" destination="VcI-RR-0NX" id="psH-Ot-DL6"/> | ||
</connections> | ||
<point key="canvasLocation" x="184.05797101449278" y="120.20089285714285"/> | ||
</tableViewCell> | ||
</objects> | ||
</document> |