-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
심화테이블 뷰 구현 완료 & 음악 검색앱 구현 #19
Open
82everywin
wants to merge
13
commits into
main
Choose a base branch
from
hyeonseung
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
81dad78
[Feat] 심화 테이블 뷰 구현 -#15
82everywin f09bdcd
[Feats] 사진 선택 및 사진 적용
82everywin 860704f
[Refactor] 싱글톤 적용 & MVC패턴 -#15
82everywin a737f4f
[Feat] add README.md -#15
82everywin b320353
[Feat] 음악 검색앱 구현 - #15
82everywin 95abae5
[Feat] 음악 검색앱 구현 - #15
82everywin 07fd6f0
[Refactor] 파일 삭제 - #15
82everywin bd26bf1
[Feat] 음악 검색앱 구현(새로운 배열구성) - #20
82everywin d983436
[Feat] README.md 업로드(결과화면 캡쳐) - #20
82everywin e608822
[Feat] README.md 업로드(결과화면 캡쳐+영상) - #20
82everywin 9322dc7
[Feat] README.md 업로드(결과화면 캡쳐+영상) - #20
82everywin 7ec89b4
[Feat] README.md 업로드(결과화면 캡쳐+영상) - #20
82everywin bf9a005
[Fix] 버그 수정 - #20
82everywin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
441 changes: 441 additions & 0 deletions
441
hyeonseung/Study-Swift/ContactApp/ContactApp.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
.../Study-Swift/ContactApp/ContactApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...ContactApp/ContactApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
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,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
84 changes: 84 additions & 0 deletions
84
...ng/Study-Swift/ContactApp/ContactApp.xcodeproj/xcshareddata/xcschemes/ContactApp.xcscheme
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,84 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1530" | ||
version = "1.7"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES" | ||
buildArchitectures = "Automatic"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8B173F2B2BF5122700C9B07A" | ||
BuildableName = "ContactApp.app" | ||
BlueprintName = "ContactApp" | ||
ReferencedContainer = "container:ContactApp.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
shouldAutocreateTestPlan = "YES"> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8B173F2B2BF5122700C9B07A" | ||
BuildableName = "ContactApp.app" | ||
BlueprintName = "ContactApp" | ||
ReferencedContainer = "container:ContactApp.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<CommandLineArguments> | ||
<CommandLineArgument | ||
argument = "IDEPreferLogStreaming=YES" | ||
isEnabled = "YES"> | ||
</CommandLineArgument> | ||
</CommandLineArguments> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "8B173F2B2BF5122700C9B07A" | ||
BuildableName = "ContactApp.app" | ||
BlueprintName = "ContactApp" | ||
ReferencedContainer = "container:ContactApp.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
110 changes: 110 additions & 0 deletions
110
hyeonseung/Study-Swift/ContactApp/ContactApp/AddMemberViewController.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,110 @@ | ||
|
||
import UIKit | ||
|
||
class AddMemberViewController: UIViewController{ | ||
|
||
let imgPicker = UIImagePickerController() | ||
|
||
@IBOutlet weak var memberNum: UILabel! | ||
@IBOutlet weak var memberName: UILabel! | ||
@IBOutlet weak var memberAge: UILabel! | ||
@IBOutlet weak var memberTel: UILabel! | ||
@IBOutlet weak var memberAddress: UILabel! | ||
|
||
@IBOutlet weak var numTF: UITextField! | ||
@IBOutlet weak var nameTF: UITextField! | ||
@IBOutlet weak var ageTF: UITextField! | ||
@IBOutlet weak var telTF: UITextField! | ||
@IBOutlet weak var addressTF: UITextField! | ||
|
||
@IBOutlet weak var imgBtn: UIButton! | ||
|
||
@IBOutlet var selectedImage: UIImageView? | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
|
||
self.imgBtn.layer.masksToBounds = true | ||
self.imgBtn.layer.cornerRadius = self.imgBtn.frame.size.width / 2 | ||
self.imgBtn.layer.backgroundColor = UIColor.lightGray.cgColor | ||
|
||
self.imgPicker.delegate = self | ||
|
||
memberNum.text = "멤버번호: " | ||
memberName.text = "이 름: " | ||
memberAge.text = "나 이: " | ||
memberTel.text = "전화번호: " | ||
memberAddress.text = "주 소: " | ||
|
||
setupView() | ||
|
||
} | ||
|
||
func setupView() { | ||
imgBtn.addTarget(self, action: #selector(uploadPhoto), for: .touchUpInside) | ||
|
||
} | ||
|
||
@IBAction func uploadPhoto(_ sender: Any) { | ||
|
||
let imagePicker = UIImagePickerController() | ||
imagePicker.sourceType = .photoLibrary | ||
imagePicker.delegate = self | ||
present(imagePicker, animated: true) | ||
|
||
} | ||
|
||
|
||
@IBAction func saveMember(_ sender: Any) { | ||
|
||
let num = numTF.text ?? "" | ||
let name = nameTF.text ?? "" | ||
let age = ageTF.text ?? "" | ||
let tel = telTF.text ?? "" | ||
let address = addressTF.text ?? "" | ||
|
||
if selectedImage?.image == nil { | ||
let defaultImages = ["basic_profile", "basic_profile2"] | ||
let randomIndex = Int(arc4random_uniform(UInt32(defaultImages.count))) | ||
selectedImage?.image = UIImage(named: defaultImages[randomIndex]) | ||
} | ||
|
||
let imageName = selectedImage?.image | ||
|
||
|
||
let data = MemberData(memberImage: imageName, memberNum: num, memberName: name, memberAge: age, memberTell: tel, memberAddress: address) | ||
|
||
MemberManager.shared.addMember(data) | ||
|
||
print("memberlist count: \(MemberManager.shared.countMember())") | ||
self.navigationController?.popViewController(animated: true) | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
extension AddMemberViewController: | ||
UIImagePickerControllerDelegate, UINavigationControllerDelegate{ | ||
|
||
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { | ||
if let pickedImage = info[.originalImage] as? UIImage { | ||
|
||
selectedImage?.image = pickedImage | ||
selectedImage?.layer.cornerRadius = (self.selectedImage?.frame.height)!/2 | ||
selectedImage?.clipsToBounds = true | ||
selectedImage?.contentMode = .scaleToFill | ||
|
||
imgBtn.setImage(pickedImage, for: .normal) | ||
imgBtn.imageView?.contentMode = .scaleAspectFill | ||
imgBtn.clipsToBounds = true | ||
} | ||
|
||
dismiss(animated: true, completion: nil) | ||
} | ||
|
||
|
||
func imagePickerControllerDidCancel(_ picker: UIImagePickerController) { | ||
dismiss(animated: true, completion: nil) | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
hyeonseung/Study-Swift/ContactApp/ContactApp/AppDelegate.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,36 @@ | ||
// | ||
// AppDelegate.swift | ||
// ContactApp | ||
// | ||
// Created by 한현승 on 5/16/24. | ||
// | ||
|
||
import UIKit | ||
|
||
@main | ||
class AppDelegate: UIResponder, UIApplicationDelegate { | ||
|
||
|
||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
// Override point for customization after application launch. | ||
return true | ||
} | ||
|
||
// MARK: UISceneSession Lifecycle | ||
|
||
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { | ||
// Called when a new scene session is being created. | ||
// Use this method to select a configuration to create the new scene with. | ||
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) | ||
} | ||
|
||
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { | ||
// Called when the user discards a scene session. | ||
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. | ||
// Use this method to release any resources that were specific to the discarded scenes, as they will not return. | ||
} | ||
|
||
|
||
} | ||
|
11 changes: 11 additions & 0 deletions
11
...eung/Study-Swift/ContactApp/ContactApp/Assets.xcassets/AccentColor.colorset/Contents.json
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,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...nseung/Study-Swift/ContactApp/ContactApp/Assets.xcassets/AppIcon.appiconset/Contents.json
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,13 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
hyeonseung/Study-Swift/ContactApp/ContactApp/Assets.xcassets/Contents.json
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,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
...ng/Study-Swift/ContactApp/ContactApp/Assets.xcassets/basic_profile.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "basic_profile.jpeg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.39 KB
...ContactApp/ContactApp/Assets.xcassets/basic_profile.imageset/basic_profile.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
...g/Study-Swift/ContactApp/ContactApp/Assets.xcassets/basic_profile2.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "basic_profile2.jpeg", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.14 KB
...ntactApp/ContactApp/Assets.xcassets/basic_profile2.imageset/basic_profile2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
hyeonseung/Study-Swift/ContactApp/ContactApp/Assets.xcassets/배트맨.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "배트맨.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+60.4 KB
hyeonseung/Study-Swift/ContactApp/ContactApp/Assets.xcassets/배트맨.imageset/배트맨.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
hyeonseung/Study-Swift/ContactApp/ContactApp/Assets.xcassets/베조스.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "베조스.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+44.3 KB
hyeonseung/Study-Swift/ContactApp/ContactApp/Assets.xcassets/베조스.imageset/베조스.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
hyeonseung/Study-Swift/ContactApp/ContactApp/Assets.xcassets/스티브.imageset/Contents.json
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,21 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "스티브.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+63.5 KB
hyeonseung/Study-Swift/ContactApp/ContactApp/Assets.xcassets/스티브.imageset/스티브.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
더 이상 상속되지 않는 클래스에는 final 키워드 붙여주는 게 좋아!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
응응 ! 수정할게!