diff --git a/iOS_Study_B.xcodeproj/project.pbxproj b/iOS_Study_B.xcodeproj/project.pbxproj index 9763af9..4768349 100644 --- a/iOS_Study_B.xcodeproj/project.pbxproj +++ b/iOS_Study_B.xcodeproj/project.pbxproj @@ -9,21 +9,25 @@ /* Begin PBXBuildFile section */ 954B6B812AC57DAA00FDCFAB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954B6B802AC57DAA00FDCFAB /* AppDelegate.swift */; }; 954B6B832AC57DAA00FDCFAB /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954B6B822AC57DAA00FDCFAB /* SceneDelegate.swift */; }; - 954B6B852AC57DAA00FDCFAB /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 954B6B842AC57DAA00FDCFAB /* ViewController.swift */; }; - 954B6B882AC57DAA00FDCFAB /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 954B6B862AC57DAA00FDCFAB /* Main.storyboard */; }; 954B6B8A2AC57DAB00FDCFAB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 954B6B892AC57DAB00FDCFAB /* Assets.xcassets */; }; 954B6B8D2AC57DAB00FDCFAB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 954B6B8B2AC57DAB00FDCFAB /* LaunchScreen.storyboard */; }; + CCA7FF1D2AD8392F00D968D8 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CCA7FF1C2AD8392F00D968D8 /* Main.storyboard */; }; + CCA7FF202AD8397C00D968D8 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA7FF1E2AD8397C00D968D8 /* ViewController.swift */; }; + CCA7FF242AD83D6300D968D8 /* HomeTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCA7FF222AD83D6300D968D8 /* HomeTableViewCell.swift */; }; + CCA7FF252AD83D6300D968D8 /* HomeTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = CCA7FF232AD83D6300D968D8 /* HomeTableViewCell.xib */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ 954B6B7D2AC57DAA00FDCFAB /* iOS_Study_B.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = iOS_Study_B.app; sourceTree = BUILT_PRODUCTS_DIR; }; 954B6B802AC57DAA00FDCFAB /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 954B6B822AC57DAA00FDCFAB /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; - 954B6B842AC57DAA00FDCFAB /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; - 954B6B872AC57DAA00FDCFAB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 954B6B892AC57DAB00FDCFAB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 954B6B8C2AC57DAB00FDCFAB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 954B6B8E2AC57DAB00FDCFAB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + CCA7FF1C2AD8392F00D968D8 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; + CCA7FF1E2AD8397C00D968D8 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + CCA7FF222AD83D6300D968D8 /* HomeTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeTableViewCell.swift; sourceTree = ""; }; + CCA7FF232AD83D6300D968D8 /* HomeTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HomeTableViewCell.xib; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -58,8 +62,10 @@ children = ( 954B6B802AC57DAA00FDCFAB /* AppDelegate.swift */, 954B6B822AC57DAA00FDCFAB /* SceneDelegate.swift */, - 954B6B842AC57DAA00FDCFAB /* ViewController.swift */, - 954B6B862AC57DAA00FDCFAB /* Main.storyboard */, + CCA7FF1C2AD8392F00D968D8 /* Main.storyboard */, + CCA7FF1E2AD8397C00D968D8 /* ViewController.swift */, + CCA7FF222AD83D6300D968D8 /* HomeTableViewCell.swift */, + CCA7FF232AD83D6300D968D8 /* HomeTableViewCell.xib */, 954B6B892AC57DAB00FDCFAB /* Assets.xcassets */, 954B6B8B2AC57DAB00FDCFAB /* LaunchScreen.storyboard */, 954B6B8E2AC57DAB00FDCFAB /* Info.plist */, @@ -125,9 +131,10 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + CCA7FF1D2AD8392F00D968D8 /* Main.storyboard in Resources */, 954B6B8D2AC57DAB00FDCFAB /* LaunchScreen.storyboard in Resources */, + CCA7FF252AD83D6300D968D8 /* HomeTableViewCell.xib in Resources */, 954B6B8A2AC57DAB00FDCFAB /* Assets.xcassets in Resources */, - 954B6B882AC57DAA00FDCFAB /* Main.storyboard in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -138,7 +145,8 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( - 954B6B852AC57DAA00FDCFAB /* ViewController.swift in Sources */, + CCA7FF202AD8397C00D968D8 /* ViewController.swift in Sources */, + CCA7FF242AD83D6300D968D8 /* HomeTableViewCell.swift in Sources */, 954B6B812AC57DAA00FDCFAB /* AppDelegate.swift in Sources */, 954B6B832AC57DAA00FDCFAB /* SceneDelegate.swift in Sources */, ); @@ -147,14 +155,6 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXVariantGroup section */ - 954B6B862AC57DAA00FDCFAB /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 954B6B872AC57DAA00FDCFAB /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; 954B6B8B2AC57DAB00FDCFAB /* LaunchScreen.storyboard */ = { isa = PBXVariantGroup; children = ( diff --git a/iOS_Study_B/Assets.xcassets/1.imageset/A9C6C0A2-0C81-4047-AD87-D7DDC6334BE1_4_5005_c.jpeg b/iOS_Study_B/Assets.xcassets/1.imageset/A9C6C0A2-0C81-4047-AD87-D7DDC6334BE1_4_5005_c.jpeg new file mode 100644 index 0000000..4a5592c Binary files /dev/null and b/iOS_Study_B/Assets.xcassets/1.imageset/A9C6C0A2-0C81-4047-AD87-D7DDC6334BE1_4_5005_c.jpeg differ diff --git a/iOS_Study_B/Assets.xcassets/1.imageset/Contents.json b/iOS_Study_B/Assets.xcassets/1.imageset/Contents.json new file mode 100644 index 0000000..bcfd9f1 --- /dev/null +++ b/iOS_Study_B/Assets.xcassets/1.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "A9C6C0A2-0C81-4047-AD87-D7DDC6334BE1_4_5005_c.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/iOS_Study_B/Assets.xcassets/2.imageset/CE65C586-064C-4E7E-9DC8-66E92A941674_4_5005_c.jpeg b/iOS_Study_B/Assets.xcassets/2.imageset/CE65C586-064C-4E7E-9DC8-66E92A941674_4_5005_c.jpeg new file mode 100644 index 0000000..164681f Binary files /dev/null and b/iOS_Study_B/Assets.xcassets/2.imageset/CE65C586-064C-4E7E-9DC8-66E92A941674_4_5005_c.jpeg differ diff --git a/iOS_Study_B/Assets.xcassets/2.imageset/Contents.json b/iOS_Study_B/Assets.xcassets/2.imageset/Contents.json new file mode 100644 index 0000000..ddded3f --- /dev/null +++ b/iOS_Study_B/Assets.xcassets/2.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "CE65C586-064C-4E7E-9DC8-66E92A941674_4_5005_c.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/iOS_Study_B/Assets.xcassets/3.imageset/4C16A8D9-C295-4938-9154-EE0A06E611AD_4_5005_c.jpeg b/iOS_Study_B/Assets.xcassets/3.imageset/4C16A8D9-C295-4938-9154-EE0A06E611AD_4_5005_c.jpeg new file mode 100644 index 0000000..7ff3d48 Binary files /dev/null and b/iOS_Study_B/Assets.xcassets/3.imageset/4C16A8D9-C295-4938-9154-EE0A06E611AD_4_5005_c.jpeg differ diff --git a/iOS_Study_B/Assets.xcassets/3.imageset/Contents.json b/iOS_Study_B/Assets.xcassets/3.imageset/Contents.json new file mode 100644 index 0000000..0868f57 --- /dev/null +++ b/iOS_Study_B/Assets.xcassets/3.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "4C16A8D9-C295-4938-9154-EE0A06E611AD_4_5005_c.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/iOS_Study_B/Assets.xcassets/4.imageset/05F907D8-8C0C-4151-967E-EB21858F071C_4_5005_c.jpeg b/iOS_Study_B/Assets.xcassets/4.imageset/05F907D8-8C0C-4151-967E-EB21858F071C_4_5005_c.jpeg new file mode 100644 index 0000000..f663330 Binary files /dev/null and b/iOS_Study_B/Assets.xcassets/4.imageset/05F907D8-8C0C-4151-967E-EB21858F071C_4_5005_c.jpeg differ diff --git a/iOS_Study_B/Assets.xcassets/4.imageset/Contents.json b/iOS_Study_B/Assets.xcassets/4.imageset/Contents.json new file mode 100644 index 0000000..5099296 --- /dev/null +++ b/iOS_Study_B/Assets.xcassets/4.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "filename" : "05F907D8-8C0C-4151-967E-EB21858F071C_4_5005_c.jpeg", + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/iOS_Study_B/Assets.xcassets/AccentColor.colorset/Contents.json b/iOS_Study_B/Assets.xcassets/AccentColor.colorset/Contents.json deleted file mode 100644 index eb87897..0000000 --- a/iOS_Study_B/Assets.xcassets/AccentColor.colorset/Contents.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "colors" : [ - { - "idiom" : "universal" - } - ], - "info" : { - "author" : "xcode", - "version" : 1 - } -} diff --git a/iOS_Study_B/Assets.xcassets/LaunchImage.launchimage/Contents.json b/iOS_Study_B/Assets.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..0426c9b --- /dev/null +++ b/iOS_Study_B/Assets.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,238 @@ +{ + "images" : [ + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "12.0", + "orientation" : "portrait", + "scale" : "3x", + "subtype" : "2688h" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "12.0", + "orientation" : "landscape", + "scale" : "3x", + "subtype" : "2688h" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "12.0", + "orientation" : "portrait", + "scale" : "2x", + "subtype" : "1792h" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "12.0", + "orientation" : "landscape", + "scale" : "2x", + "subtype" : "1792h" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "12.0", + "orientation" : "portrait", + "scale" : "2x", + "subtype" : "2388h" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "12.0", + "orientation" : "landscape", + "scale" : "2x", + "subtype" : "2388h" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "11.0", + "orientation" : "portrait", + "scale" : "3x", + "subtype" : "2436h" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "11.0", + "orientation" : "landscape", + "scale" : "3x", + "subtype" : "2436h" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "10.0", + "orientation" : "portrait", + "scale" : "2x", + "subtype" : "2224h" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "10.0", + "orientation" : "landscape", + "scale" : "2x", + "subtype" : "2224h" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "9.0", + "orientation" : "portrait", + "scale" : "2x", + "subtype" : "1366h" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "9.0", + "orientation" : "landscape", + "scale" : "2x", + "subtype" : "1366h" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "8.0", + "orientation" : "portrait", + "scale" : "3x", + "subtype" : "736h" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "8.0", + "orientation" : "landscape", + "scale" : "3x", + "subtype" : "736h" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "8.0", + "orientation" : "portrait", + "scale" : "2x", + "subtype" : "667h" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x", + "subtype" : "retina4" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "1x" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "7.0", + "orientation" : "landscape", + "scale" : "1x" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "minimum-system-version" : "7.0", + "orientation" : "landscape", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "orientation" : "portrait", + "scale" : "1x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "orientation" : "portrait", + "scale" : "2x", + "subtype" : "retina4" + }, + { + "extent" : "to-status-bar", + "idiom" : "ipad", + "orientation" : "portrait", + "scale" : "1x" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "orientation" : "portrait", + "scale" : "1x" + }, + { + "extent" : "to-status-bar", + "idiom" : "ipad", + "orientation" : "landscape", + "scale" : "1x" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "orientation" : "landscape", + "scale" : "1x" + }, + { + "extent" : "to-status-bar", + "idiom" : "ipad", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "orientation" : "portrait", + "scale" : "2x" + }, + { + "extent" : "to-status-bar", + "idiom" : "ipad", + "orientation" : "landscape", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "ipad", + "orientation" : "landscape", + "scale" : "2x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/iOS_Study_B/Base.lproj/Main.storyboard b/iOS_Study_B/Base.lproj/Main.storyboard deleted file mode 100644 index 25a7638..0000000 --- a/iOS_Study_B/Base.lproj/Main.storyboard +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/iOS_Study_B/HomeTableViewCell.swift b/iOS_Study_B/HomeTableViewCell.swift new file mode 100644 index 0000000..83b8b88 --- /dev/null +++ b/iOS_Study_B/HomeTableViewCell.swift @@ -0,0 +1,36 @@ +// +// HomeTableViewCell.swift +// iOS_Study_B +// +// Created by 임아영 on 2023/10/12. +// + +import UIKit + +class HomeTableViewCell: UITableViewCell { + @IBOutlet weak var DGalbaimage: UIImageView! + @IBOutlet weak var title1: UILabel! + @IBOutlet weak var sub1: UILabel! + + + override func awakeFromNib() { + super.awakeFromNib() + // Initialization code + + let fontSize = UIFont.systemFontSize + } + + override func layoutSubviews() { + super.layoutSubviews() + // Cell 간격 조정 + contentView.frame = contentView.frame.inset(by: UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)) + } + + override func setSelected(_ selected: Bool, animated: Bool) { + super.setSelected(selected, animated: animated) + + // Configure the view for the selected state + } + +} + diff --git a/iOS_Study_B/HomeTableViewCell.xib b/iOS_Study_B/HomeTableViewCell.xib new file mode 100644 index 0000000..538c41e --- /dev/null +++ b/iOS_Study_B/HomeTableViewCell.xib @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iOS_Study_B/Main.storyboard b/iOS_Study_B/Main.storyboard new file mode 100644 index 0000000..3a917a9 --- /dev/null +++ b/iOS_Study_B/Main.storyboard @@ -0,0 +1,244 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/iOS_Study_B/ViewController.swift b/iOS_Study_B/ViewController.swift index f3577b5..7854bb4 100644 --- a/iOS_Study_B/ViewController.swift +++ b/iOS_Study_B/ViewController.swift @@ -1,19 +1,42 @@ // -// ViewController.swift +// HomeTableViewController.swift // iOS_Study_B // -// Created by 박지윤 on 2023/09/28. +// Created by 임아영 on 2023/10/12. // import UIKit - class ViewController: UIViewController { - + + @IBOutlet weak var PDtableView: UITableView! + override func viewDidLoad() { super.viewDidLoad() - // Do any additional setup after loading the view. + + PDtableView.delegate = self + PDtableView.dataSource = self + let feedNib = UINib(nibName: "HomeTableViewCell", bundle: nil) + PDtableView.register(feedNib, forCellReuseIdentifier: "HomeTableViewCell ") } - - + + + } +extension ViewController: UITableViewDelegate, UITableViewDataSource { + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return 4 + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + guard let cell = tableView.dequeueReusableCell(withIdentifier: "HomeTableViewCell", for: indexPath) as? + HomeTableViewCell else { + return HomeTableViewCell() + } + return cell + } + + func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { + return 150 + } +}