-
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)
π· μμ ν λ΄μ©
π¨ μ°Έκ³ μ¬ν
πΈ μ€ν¬λ¦°μ·
π κ΄λ ¨ μ΄μ