Skip to content

Commit

Permalink
YAPP-19th#61 - 테이블뷰를 이용한 셀 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
ITlearning committed Jan 10, 2022
1 parent c092788 commit 4fd02d0
Show file tree
Hide file tree
Showing 9 changed files with 423 additions and 9 deletions.
24 changes: 24 additions & 0 deletions Budi/Budi.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,12 @@
A8CE1193278B1F82008AFEBC /* MyBudiProjectDetailCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8CE1190278B1F82008AFEBC /* MyBudiProjectDetailCollectionViewCell.swift */; };
A8CE1194278B1F82008AFEBC /* MyBudiProjectDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8CE1191278B1F82008AFEBC /* MyBudiProjectDetailViewController.swift */; };
A8CE1196278B1F91008AFEBC /* MyBudiContentViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8CE1195278B1F90008AFEBC /* MyBudiContentViewController.swift */; };
A8E03CCF278C68A40074DE4B /* NormalTextFieldTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8E03CCD278C68A40074DE4B /* NormalTextFieldTableViewCell.swift */; };
A8E03CD0278C68A40074DE4B /* NormalTextFieldTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A8E03CCE278C68A40074DE4B /* NormalTextFieldTableViewCell.xib */; };
A8E03CD3278C693C0074DE4B /* LocationReplaceTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8E03CD1278C693C0074DE4B /* LocationReplaceTableViewCell.swift */; };
A8E03CD4278C693C0074DE4B /* LocationReplaceTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A8E03CD2278C693C0074DE4B /* LocationReplaceTableViewCell.xib */; };
A8E03CD7278C6B030074DE4B /* PositionTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8E03CD5278C6B030074DE4B /* PositionTableViewCell.swift */; };
A8E03CD8278C6B030074DE4B /* PositionTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = A8E03CD6278C6B030074DE4B /* PositionTableViewCell.xib */; };
B92D54F9274C02EB00D0E851 /* .swiftlint.yml in Resources */ = {isa = PBXBuildFile; fileRef = B92D54F8274C02EB00D0E851 /* .swiftlint.yml */; };
B92D5505274C03AB00D0E851 /* Post.swift in Sources */ = {isa = PBXBuildFile; fileRef = B92D5504274C03AA00D0E851 /* Post.swift */; };
B94D2D9A277DE9E700DD7FDD /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = B94D2D99277DE9E700DD7FDD /* GoogleService-Info.plist */; };
Expand Down Expand Up @@ -400,6 +406,12 @@
A8CE1190278B1F82008AFEBC /* MyBudiProjectDetailCollectionViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MyBudiProjectDetailCollectionViewCell.swift; sourceTree = "<group>"; };
A8CE1191278B1F82008AFEBC /* MyBudiProjectDetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MyBudiProjectDetailViewController.swift; sourceTree = "<group>"; };
A8CE1195278B1F90008AFEBC /* MyBudiContentViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MyBudiContentViewController.swift; sourceTree = "<group>"; };
A8E03CCD278C68A40074DE4B /* NormalTextFieldTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NormalTextFieldTableViewCell.swift; sourceTree = "<group>"; };
A8E03CCE278C68A40074DE4B /* NormalTextFieldTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = NormalTextFieldTableViewCell.xib; sourceTree = "<group>"; };
A8E03CD1278C693C0074DE4B /* LocationReplaceTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationReplaceTableViewCell.swift; sourceTree = "<group>"; };
A8E03CD2278C693C0074DE4B /* LocationReplaceTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = LocationReplaceTableViewCell.xib; sourceTree = "<group>"; };
A8E03CD5278C6B030074DE4B /* PositionTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PositionTableViewCell.swift; sourceTree = "<group>"; };
A8E03CD6278C6B030074DE4B /* PositionTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PositionTableViewCell.xib; sourceTree = "<group>"; };
B92D54F8274C02EB00D0E851 /* .swiftlint.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.yaml; path = .swiftlint.yml; sourceTree = "<group>"; };
B92D54FE274C037E00D0E851 /* String+date.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "String+date.swift"; sourceTree = "<group>"; };
B92D5501274C039C00D0E851 /* HomeContentViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HomeContentViewModel.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -596,6 +608,12 @@
5E9150A42772355B000578D4 /* Cells */ = {
isa = PBXGroup;
children = (
A8E03CCD278C68A40074DE4B /* NormalTextFieldTableViewCell.swift */,
A8E03CCE278C68A40074DE4B /* NormalTextFieldTableViewCell.xib */,
A8E03CD1278C693C0074DE4B /* LocationReplaceTableViewCell.swift */,
A8E03CD2278C693C0074DE4B /* LocationReplaceTableViewCell.xib */,
A8E03CD5278C6B030074DE4B /* PositionTableViewCell.swift */,
A8E03CD6278C6B030074DE4B /* PositionTableViewCell.xib */,
);
path = Cells;
sourceTree = "<group>";
Expand Down Expand Up @@ -1166,6 +1184,7 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A8E03CD0278C68A40074DE4B /* NormalTextFieldTableViewCell.xib in Resources */,
B92D54F9274C02EB00D0E851 /* .swiftlint.yml in Resources */,
5E820B8B2769F04A004A03E9 /* HomeWritingMembersDetailPartBottomCollectionViewCell.xib in Resources */,
5E2554622732DF8A00033723 /* GreetingAlertViewController.xib in Resources */,
Expand Down Expand Up @@ -1207,6 +1226,7 @@
5E91509B27722213000578D4 /* MyBudiProjectCell.xib in Resources */,
5E2554362732770B00033723 /* HomeDetailPersonCell.xib in Resources */,
5E820B902769F963004A03E9 /* DatePickerBottomViewController.xib in Resources */,
A8E03CD8278C6B030074DE4B /* PositionTableViewCell.xib in Resources */,
5EFB0A462733E36800F39A4D /* TeamSearchCell.xib in Resources */,
5EC2FEFA275E191F00FF5BB0 /* HomeDetailStatusUnitCell.xib in Resources */,
5E820B782769E9CA004A03E9 /* HomeWritingMembersPartBottomCell.xib in Resources */,
Expand All @@ -1225,6 +1245,7 @@
5E7CF4C92770B79E007315F1 /* HomeWritingMembersPartUnitBottomCell.xib in Resources */,
5E820B7C2769E9D7004A03E9 /* HomeWritingMembersDetailPartBottomCell.xib in Resources */,
5E5517AA2768BCC300DC605E /* HomeWritingPartBottomCell.xib in Resources */,
A8E03CD4278C693C0074DE4B /* LocationReplaceTableViewCell.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1308,6 +1329,7 @@
5E9150A62772356A000578D4 /* MyBudiEditCellType.swift in Sources */,
5E88636E2767450A0022397A /* HomeWritingCellType.swift in Sources */,
5E820B7B2769E9D7004A03E9 /* HomeWritingMembersDetailPartBottomCell.swift in Sources */,
A8E03CD3278C693C0074DE4B /* LocationReplaceTableViewCell.swift in Sources */,
5E8863822767AE190022397A /* HomeWritingImageBottomCell.swift in Sources */,
5EF986CA2786E58600874A40 /* Leader.swift in Sources */,
A8CE1196278B1F91008AFEBC /* MyBudiContentViewController.swift in Sources */,
Expand All @@ -1328,6 +1350,7 @@
B97A862D2786D6DB0016CF23 /* TeamSearchProfileCell.swift in Sources */,
A8CD936127384C4900299AB4 /* SearchTableViewCell.swift in Sources */,
A85C920B276A35270097E444 /* PortfolioViewController.swift in Sources */,
A8E03CCF278C68A40074DE4B /* NormalTextFieldTableViewCell.swift in Sources */,
B94D2D9C277DFE2300DD7FDD /* TeamSearchViewModel.swift in Sources */,
B92D5505274C03AB00D0E851 /* Post.swift in Sources */,
5EB4302D2758951600283239 /* HomeWritingPartCell.swift in Sources */,
Expand Down Expand Up @@ -1443,6 +1466,7 @@
5EBD9D5D276DB57B00615319 /* HomeDetailViewModel.swift in Sources */,
5E91508D27721D8B000578D4 /* MyBudiMainViewController.swift in Sources */,
5E58E6B1276B588C00ABBF1C /* AppliesRequest.swift in Sources */,
A8E03CD7278C6B030074DE4B /* PositionTableViewCell.swift in Sources */,
5EB430452758959600283239 /* HomeWritingDescriptionCell.swift in Sources */,
A81D1061276482950022D610 /* DefaultTableViewCell.swift in Sources */,
5E91509627722206000578D4 /* MyBudiLevelCell.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// PositionTableViewCell.swift
// Budi
//
// Created by 인병윤 on 2022/01/10.
//

import UIKit

class LocationReplaceTableViewCell: UITableViewCell {

static let cellId = "LocationReplaceTableViewCell"

@IBOutlet weak var locationTextField: UITextField!
@IBOutlet weak var replaceLocationButton: UIButton!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}

override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)

// Configure the view for the selected state
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19454"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.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" reuseIdentifier="LocationReplaceTableViewCell" rowHeight="110" id="KGk-i7-Jjw" customClass="LocationReplaceTableViewCell" customModule="Budi" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="165"/>
<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="375" height="165"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FxT-Va-Dqg">
<rect key="frame" x="0.0" y="0.0" width="375" height="165"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="활동지역" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jCU-Fb-r7H">
<rect key="frame" x="8" y="16" width="48.5" height="17"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gry-dR-8wz">
<rect key="frame" x="16" y="105" width="343" height="48"/>
<color key="backgroundColor" name="Border"/>
<constraints>
<constraint firstAttribute="height" constant="48" id="ayI-mE-M7a"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="tintColor" name="Black"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="다시 선택">
<color key="titleColor" red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="calibratedRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="8"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<textField opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="yEt-5g-y2m">
<rect key="frame" x="16" y="49" width="343" height="48"/>
<constraints>
<constraint firstAttribute="height" constant="48" id="YLm-Aj-sbr"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<textInputTraits key="textInputTraits"/>
<connections>
<action selector="locationTextField:" destination="KGk-i7-Jjw" eventType="editingDidEnd" id="7ls-DA-j6T"/>
</connections>
</textField>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="yEt-5g-y2m" secondAttribute="trailing" constant="16" id="0vH-1m-iNA"/>
<constraint firstItem="FxT-Va-Dqg" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="3i3-Wc-WI9"/>
<constraint firstAttribute="trailing" secondItem="gry-dR-8wz" secondAttribute="trailing" constant="16" id="7mp-Md-oZy"/>
<constraint firstItem="gry-dR-8wz" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="J6F-BD-fSR"/>
<constraint firstAttribute="trailing" secondItem="FxT-Va-Dqg" secondAttribute="trailing" id="OV3-8d-jbS"/>
<constraint firstAttribute="bottom" secondItem="FxT-Va-Dqg" secondAttribute="bottom" id="UWq-QQ-nNV"/>
<constraint firstItem="jCU-Fb-r7H" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="16" id="WEK-xf-fOe"/>
<constraint firstItem="gry-dR-8wz" firstAttribute="top" secondItem="yEt-5g-y2m" secondAttribute="bottom" constant="8" id="ge0-Bm-Eak"/>
<constraint firstItem="FxT-Va-Dqg" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="hPj-m5-whX"/>
<constraint firstItem="yEt-5g-y2m" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="16" id="l7F-BD-O8b"/>
<constraint firstItem="jCU-Fb-r7H" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="8" id="ss3-Jx-1nx"/>
<constraint firstItem="yEt-5g-y2m" firstAttribute="top" secondItem="jCU-Fb-r7H" secondAttribute="bottom" constant="16" id="uGh-N8-Ha7"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="locationTextField" destination="yEt-5g-y2m" id="vdn-MC-ec5"/>
<outlet property="replaceLocationButton" destination="gry-dR-8wz" id="QFC-hl-qs3"/>
</connections>
<point key="canvasLocation" x="160.86956521739131" y="105.80357142857143"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="Black">
<color red="0.11699999868869781" green="0.11699999868869781" blue="0.11699999868869781" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="Border">
<color red="0.87800002098083496" green="0.87800002098083496" blue="0.87800002098083496" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// NormalTextFieldTableViewCell.swift
// Budi
//
// Created by 인병윤 on 2022/01/10.
//

import UIKit

class NormalTextFieldTableViewCell: UITableViewCell {

static let cellId = "NormalTableViewCell"

override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}

override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)

// Configure the view for the selected state
}

}
Loading

0 comments on commit 4fd02d0

Please sign in to comment.