forked from YAPP-19th/iOS-Team-2-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ed69c3
commit 334acb1
Showing
15 changed files
with
422 additions
and
28 deletions.
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
23 changes: 23 additions & 0 deletions
23
Budi/Budi/Source/MyBudi/Edit/Cells/MyBudiEditHeaderView.swift
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,23 @@ | ||
// | ||
// MyBudiEditHeaderView.swift | ||
// Budi | ||
// | ||
// Created by 인병윤 on 2022/01/10. | ||
// | ||
|
||
import UIKit | ||
|
||
class MyBudiEditHeaderView: UITableViewHeaderFooterView { | ||
|
||
static let cellId = "MyBudiEditHeaderView" | ||
|
||
@IBOutlet weak var headerLabel: UILabel! | ||
override func prepareForReuse() { | ||
super.prepareForReuse() | ||
|
||
} | ||
|
||
func configureHeader(header: String) { | ||
headerLabel.text = header | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
Budi/Budi/Source/MyBudi/Edit/Cells/MyBudiEditHeaderView.xib
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,55 @@ | ||
<?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="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"/> | ||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="MyBudiEditHeaderView" customModule="Budi" customModuleProvider="target"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="g14-BE-BbO"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/> | ||
<subviews> | ||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="프로젝트" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mFA-6Q-qhF"> | ||
<rect key="frame" x="16" y="15" width="48.5" height="17"/> | ||
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="14"/> | ||
<nil key="textColor"/> | ||
<nil key="highlightedColor"/> | ||
</label> | ||
</subviews> | ||
<color key="backgroundColor" systemColor="systemBackgroundColor"/> | ||
<constraints> | ||
<constraint firstItem="mFA-6Q-qhF" firstAttribute="top" secondItem="g14-BE-BbO" secondAttribute="top" constant="15" id="jkf-eZ-s8R"/> | ||
<constraint firstItem="mFA-6Q-qhF" firstAttribute="leading" secondItem="g14-BE-BbO" secondAttribute="leading" constant="16" id="xYV-qV-EHA"/> | ||
</constraints> | ||
</view> | ||
</subviews> | ||
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/> | ||
<color key="backgroundColor" systemColor="systemBackgroundColor"/> | ||
<constraints> | ||
<constraint firstItem="g14-BE-BbO" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="ON5-5h-UTL"/> | ||
<constraint firstItem="vUN-kp-3ea" firstAttribute="bottom" secondItem="g14-BE-BbO" secondAttribute="bottom" id="cWd-WF-8Hc"/> | ||
<constraint firstItem="g14-BE-BbO" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="nYp-fV-nYv"/> | ||
<constraint firstAttribute="trailing" secondItem="g14-BE-BbO" secondAttribute="trailing" id="ndk-yP-Eth"/> | ||
</constraints> | ||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> | ||
<connections> | ||
<outlet property="headerLabel" destination="mFA-6Q-qhF" id="6Vo-Vg-2WG"/> | ||
</connections> | ||
<point key="canvasLocation" x="226.81159420289856" y="316.07142857142856"/> | ||
</view> | ||
</objects> | ||
<resources> | ||
<systemColor name="systemBackgroundColor"> | ||
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> | ||
</systemColor> | ||
</resources> | ||
</document> |
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
30 changes: 30 additions & 0 deletions
30
Budi/Budi/Source/MyBudi/Edit/Cells/ProjectTableViewCell.swift
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,30 @@ | ||
// | ||
// ProjectTableViewCell.swift | ||
// Budi | ||
// | ||
// Created by 인병윤 on 2022/01/10. | ||
// | ||
|
||
import UIKit | ||
|
||
class ProjectTableViewCell: UITableViewCell { | ||
|
||
static let cellId = "ProjectTableViewCell" | ||
|
||
@IBOutlet weak var selectView: UIView! | ||
@IBOutlet weak var addButton: UIButton! | ||
override func awakeFromNib() { | ||
super.awakeFromNib() | ||
selectView.isHidden = true | ||
} | ||
|
||
override func setSelected(_ selected: Bool, animated: Bool) { | ||
super.setSelected(selected, animated: animated) | ||
|
||
// Configure the view for the selected state | ||
} | ||
|
||
func configureButtonTitle(text: String) { | ||
addButton.setTitle(text, for: .normal) | ||
} | ||
} |
Oops, something went wrong.