-
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
7th seminar #5
base: develop
Are you sure you want to change the base?
7th seminar #5
Conversation
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.
์๋นํ ๋ง์ ๋ณ๊ฒฝ์ด ๋ณด์ด๋ค์..
์ ๋ง.. ์๊ณ ๋ง์ผ์
จ์ต๋๋ค !! ๐๐
var task: Task { | ||
switch self { | ||
case let .fetchBoxOfficeData(date): | ||
return .requestParameters(parameters: ["key": "b4ddbf38f567f468512099872d9cc672", "targetDt": date], encoding: URLEncoding.queryString) |
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.
key๊ฐ๋ Config์์ base url ์จ๊ธฐ์ ๋ฐฉ์์ฒ๋ผ ์ฒ๋ฆฌํ์๋ฉด ์์ ํ๋ต๋๋ค!
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.
์ ๋ ์ด๊ฒ๋๋ฌธ์ ๊ฟ๋ฐคํ๋ฒ ๋ง์์ต๋๋ค ์ ์ฐ๊ฐ ๋งํ๋๋ก Config์์ base url ์จ๊ธด ๋ฐฉ๋ฒ์ฒ๋ผ Privacy๋ก ๊ด๋ฆฌํ๋๊ฒ์ด ์ข์ต๋๋ค. ์๋ ๊ทธ๋ ๊ฒ ํด์ผํฉ๋๋ค. (ํนํ๋ Git๋ ํฌ๊ฐ Public ์ํ๋ผ๋ฉด.)
์๋ํ๋ฉด ์ด๋ ๊ฒ ์คํ๋ ๊น ๋ ํฌ์ ๊ฐ์ธ ํค๋ ์๋ฒ url์ด ์คํ๋์ด์๋ ์ํ๋ผ๋ฉด ์ด๋ฐ๊ฒ๋ง ์ ๋ฌธ์ ์ผ๋ก ํฌ๋กค๋งํ๋ ์ฌ๋๋ค์ด ํด๋น ํค๋ฅผ ๋ณด๊ณ ์์๋ ์๋ฒ๋ ํค์ ์ ๊ทผํด์ ๋ฉ๋๋ก ์ฌ์ฉํ ์๋ ์๋ ์ํํ ์ํฉ์ด ์์์ ์์ต๋๋ค.
๊ฐ์ธ์ ๋ณด ๋ณดํธ๋ฅผ ์ํด privacy๋ฅผ ์ํํ ํด๋ด์!!
(์ด๋ ค์ด ๋ด์ฉ์ ์๋๊ณ privacy Info.plist , git ignore <- ์ด ํค์๋๋ก ๊ฒ์ํ์๋ฉด ์ดํด๋์ค๊ฑฐ์์)
view.addSubview(titleLabel) | ||
view.addSubview(idTextField) | ||
view.addSubview(passwordTextField) | ||
view.addSubview(loginButton) | ||
view.addSubview(idFindButton) | ||
view.addSubview(passwordFindButton) | ||
view.addSubview(accountQuestionLabel) | ||
view.addSubview(signUpButton) |
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.
์๋ฃ์ค์ ์๋ addSubviews ์ต์คํ ์ ์จ๋ด๋ ์ข์๊ฒ ๊ฐ์์!!
if let image = UIImage(named: "x-circle") { | ||
let imageSize = image.size | ||
print("Image Size: \(imageSize)") | ||
} else { | ||
print("Image not found or couldn't be loaded.") | ||
} |
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.
์ค์น ์ด๋ถ๋ถ์ ์ด๋ค ์ด์ ๋ก ์ฐ์๊ฒ ๋์ จ๋์~?
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.
์๋ฆ๋ค์ด ์ฝ๋ ์๋ณด๊ณ ๊ฐ๋๋ค. ์ค๋๋ ํ๋ณตํ ํ๋ฃจ ๋์ธ์ :)
|
||
extension UITextField { | ||
|
||
/// ํ ์คํธํ๋์ ์ผ์ชฝ๊ณผ ์ค๋ฅธ์ชฝ์ ํจ๋ฉ์ ์ถ๊ฐํ๋ ํจ์ |
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.
ํ๋์ฉ ์์๊ฐ๋ ค๋ ๋ชจ์ต ์ ๋ง ์ข์ต๋๋ค!!!
var task: Task { | ||
switch self { | ||
case let .fetchBoxOfficeData(date): | ||
return .requestParameters(parameters: ["key": "b4ddbf38f567f468512099872d9cc672", "targetDt": date], encoding: URLEncoding.queryString) |
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.
์ ๋ ์ด๊ฒ๋๋ฌธ์ ๊ฟ๋ฐคํ๋ฒ ๋ง์์ต๋๋ค ์ ์ฐ๊ฐ ๋งํ๋๋ก Config์์ base url ์จ๊ธด ๋ฐฉ๋ฒ์ฒ๋ผ Privacy๋ก ๊ด๋ฆฌํ๋๊ฒ์ด ์ข์ต๋๋ค. ์๋ ๊ทธ๋ ๊ฒ ํด์ผํฉ๋๋ค. (ํนํ๋ Git๋ ํฌ๊ฐ Public ์ํ๋ผ๋ฉด.)
์๋ํ๋ฉด ์ด๋ ๊ฒ ์คํ๋ ๊น ๋ ํฌ์ ๊ฐ์ธ ํค๋ ์๋ฒ url์ด ์คํ๋์ด์๋ ์ํ๋ผ๋ฉด ์ด๋ฐ๊ฒ๋ง ์ ๋ฌธ์ ์ผ๋ก ํฌ๋กค๋งํ๋ ์ฌ๋๋ค์ด ํด๋น ํค๋ฅผ ๋ณด๊ณ ์์๋ ์๋ฒ๋ ํค์ ์ ๊ทผํด์ ๋ฉ๋๋ก ์ฌ์ฉํ ์๋ ์๋ ์ํํ ์ํฉ์ด ์์์ ์์ต๋๋ค.
๊ฐ์ธ์ ๋ณด ๋ณดํธ๋ฅผ ์ํด privacy๋ฅผ ์ํํ ํด๋ด์!!
(์ด๋ ค์ด ๋ด์ฉ์ ์๋๊ณ privacy Info.plist , git ignore <- ์ด ํค์๋๋ก ๊ฒ์ํ์๋ฉด ์ดํด๋์ค๊ฑฐ์์)
private func setStyle() { | ||
self.navigationController?.navigationBar.isHidden = true | ||
|
||
mainPoster.do { |
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.
์์ฐ .do ๋ฅผ ์ฌ์ฉํ๋ ํจ์ฌ ๊ฐ๋ ์ฑ์ด ์ข์์ก๋ค์! do๋ฅผ ์ด๋ ๊ฒ ์ ์ฌ์ฉํ์๋ค๋ ์ ๋ง ๋ฉ์ ธ์!!
// //ํ ์ด๋ธ ๋ทฐ์ ์ ๋ฑ๋ก 1.์ด๋ค ์ ๋ฑ๋กํ ์ง 2.์๋ณ์ | ||
// private func register() { | ||
// contentTableView.register( | ||
// ContentTableViewCell.self, | ||
// forCellReuseIdentifier: ContentTableViewCell.identifier | ||
// ) | ||
// } | ||
// private func setDelegate() { | ||
// contentTableView.delegate = self | ||
// contentTableView.dataSource = self | ||
// } | ||
|
||
} | ||
|
||
//extension MainViewController: UITableViewDelegate { | ||
// func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { | ||
// return tableView.frame.width // ํ ์ด๋ธ ๋ทฐ์ ๋๋น๋ฅผ ์ ์ ๋์ด๋ก ์ฌ์ฉํ์ฌ ๊ฐ๋ก ์คํฌ๋กค์ ์ํ ๋์ด ์กฐ์ | ||
// } | ||
//} | ||
|
||
//extension MainViewController: UITableViewDataSource { | ||
// func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { | ||
// return 5 | ||
// } | ||
// | ||
// func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | ||
// guard let cell = tableView.dequeueReusableCell(withIdentifier: ContentTableViewCell.identifier, for: indexPath) as? ContentTableViewCell else { return UITableViewCell() } | ||
// cell.dataBind(contentList[indexPath.row]) | ||
// return cell | ||
// } | ||
//} | ||
|
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.
๋ถํ์ํ ์ฝ๋๋ ์ง์ฐ๊ธฐ!
protocol LoginPresenterProtocol { | ||
func didTapLoginButton(id: String?, password: String?) | ||
func didChangeTextField(text: String?, for textField: UITextField) | ||
} | ||
|
||
// MARK: - LoginPresenter | ||
class LoginPresenter: LoginPresenterProtocol { | ||
|
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.
์๋ถ๋ถ๋ ์๋กญ๊ฒ ๋ถ๋ฆฌํด๋ณด๋๊ฒ ์ถ์ฒ๋๋ ค์ ๊ฐ์ ํ์ผ๋ด๋ถ๋ณด๋ค ์ด๋ถ๋ถ๋ง ๋๋ ค๋ด์ ์๋ก์ด .swiftํ์ผ๋ก ๋ง๋ค์ด๋ ์ข์๊ฒ๊ฐ์ต๋๋ค :)
๐ฅPull requests
โณ๏ธ ์์ ํ ๋ธ๋์น
(7thSeminar)
๐ท ์์ ํ ๋ด์ฉ
๐จ ์ฐธ๊ณ ์ฌํญ
๐ธ ์คํฌ๋ฆฐ์ท
๐ ๊ด๋ จ ์ด์