-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/#4 assignment 2 #6
Conversation
|
||
class AddVC: UIViewController { | ||
|
||
// MARK: - Life Cycle |
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.
μ€μ€... μ λ MARK μμ±ν΄μΌκ² μ΄μ.... λ κΉλν΄ λ³΄μ΄κ³ μ’μκ±° κ°μ μ€...!
func setupLayout() { | ||
logoImageView.snp.makeConstraints { make in | ||
make.top.equalToSuperview().offset(100) | ||
make.centerX.equalToSuperview() | ||
make.width.equalTo(117) | ||
make.height.equalTo(40) | ||
} | ||
|
||
titleLabel.snp.makeConstraints { make in | ||
make.top.equalTo(logoImageView.snp.bottom).offset(14) | ||
make.centerX.equalToSuperview() | ||
} | ||
|
||
subLabel.snp.makeConstraints { make in | ||
make.top.equalTo(titleLabel.snp.bottom).offset(14) | ||
make.centerX.equalToSuperview() | ||
} | ||
|
||
nameTextField.snp.makeConstraints { make in | ||
make.top.equalTo(subLabel.snp.bottom).offset(68) | ||
make.leading.trailing.equalToSuperview().inset(22) | ||
make.height.equalTo(50) | ||
} | ||
|
||
emailTextField.snp.makeConstraints { make in | ||
make.top.equalTo(nameTextField.snp.bottom).offset(17) | ||
make.leading.trailing.equalToSuperview().inset(22) | ||
make.height.equalTo(50) | ||
} | ||
|
||
pwTextField.snp.makeConstraints { make in | ||
make.top.equalTo(emailTextField.snp.bottom).offset(17) | ||
make.leading.trailing.equalToSuperview().inset(22) | ||
make.height.equalTo(50) | ||
} | ||
|
||
signUpButton.snp.makeConstraints { make in | ||
make.top.equalTo(pwTextField.snp.bottom).offset(73) | ||
make.leading.equalToSuperview().inset(22) | ||
} | ||
|
||
nextButton.snp.makeConstraints { make in | ||
make.centerY.equalTo(signUpButton.snp.centerY) | ||
make.trailing.equalToSuperview().inset(22) | ||
make.width.equalTo(74) | ||
make.height.equalTo(50) | ||
} | ||
} | ||
|
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.
μλΉλ.. snapkit μ λ§ μμ°μλ€μ! κ·Έλ¦¬κ³ MARKλ‘ κ΅¬λΆν΄μ£Όμ μ λ무 νΈνκ² μ½μμ΅λλ€!!!! μ΅κ³ 짱짱.. μ λ λ§μ΄ λ°°μκ°λλ€~~ππ»
let lockerVC = self.storyboard?.instantiateViewController(withIdentifier: "LockerVC") | ||
else {return} | ||
|
||
/// νλ° μμ΄ν λ³ μ΄λ¦ |
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.
μ€!! μ λ VCλ³λ‘ λ¬Άμ΄μ μμ±μ μ§μ ν΄μ€¬μλλ°, κ°μ μμ±λΌλ¦¬ μ½λλ₯Ό λ¬ΆμΌλκΉ λ κ°λ μ±μκ³ μ’λ€μ!!!! 짱μ λλ€ππ»
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.
κ·Έλ¬λ€μ!! VCλ³λ‘ λ¬Άμ΄μ μ§μ ν΄μ£Όλ ν¨μ¬ 보기 νΈν κ² κ°μμ!! μ λ μ°Έκ³ ν΄λ³΄λλ‘ νκ² μ΅λλ€!! :)
|
||
nameTextField.snp.makeConstraints { make in | ||
make.top.equalTo(subLabel.snp.bottom).offset(68) | ||
make.leading.trailing.equalToSuperview().inset(22) |
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.
μ μ€λ ν· μΈ λ leading, trailing λ°λ‘ μ½λ μ¨μ€¬μλλ° μ΄λ κ² κ°μ΄μ°λ λ°©λ²μ΄ μκ΅°μ!! λλ° μ€μ€ν΄κ°λλ€~~~π
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.
μ΄κ² λ°λ‘ μ€λ ν·μ΄κ΅°μ!! leading, trailing κ°μ΄ μ°λ λ°©λ² μ€μ€ν΄κ°λλ€~!! 22γ γ
logoImageView.image = UIImage(named: "Google") | ||
} | ||
|
||
func setupLayout() { |
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.
μ½λ λ΄μμ
//MARK:- Layout
extension SignUpViewController {
func setupLayout() {
// λΈλΌλΈλΌ~~
}
}
μ΄λ° μμΌλ‘ Layoutꡬμ±λΆλ₯Ό extensionμΌλ‘ λ°μΌλ‘ λΉΌμ€λ κ°λ μ± μΈ‘λ©΄μμ μ’μ κ² κ°μμ~~ π€
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μλ λΊ μ μκ΅°μ¬..! μ½μ₯ λ°μν΄λ³΄κ² μ΅λλ€π
self.dismiss(animated: true, completion: nil) | ||
/// Mainμ΄ μλ λ°λ‘ μμ±ν YouTubeMainμ΄λΌλ μ€ν 리보λλ₯Ό μ μΈ | ||
let youtubeMainStoryboard = UIStoryboard.init(name: "YoutubeMain", bundle: nil) | ||
guard let nextVC = youtubeMainStoryboard.instantiateViewController(withIdentifier: "CustomTabBarController") as? CustomTabBarController else {return} |
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.
TabBarControllerλ₯Ό μ€μ¬μ TBC λΌκ³ μ§μ΄μ€λ μ’μ κ² κ°μμ! γ γ
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.
μ€ TBC...! μ λ λ°κΏμΌκ² μ΄μ€... TBC...
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.
μμ€ μ’μμ.. TabBarController λ무 κΈΈλλΌκ΅¬μ... μ½μ₯ κ°λλ€!
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.
λ§ν¬ μ¬μ©ν΄μ£Όμ λμ μ΄λ€ μν μ νλ μΉκ΅¬λ€μΈμ§ λ μ λ³Ό μ μμ΄ μ’μμ΅λλ€~!!γ
γ
κ°μ κ²°μ κ°μ§ μΉκ΅¬λ€μ λ¬Άμ΄μ μμ±ν΄μ£Όμ λΆλΆλ€μ΄ μΈμκΉμμ΅λλ€ μ λ°°!!π
let lockerVC = self.storyboard?.instantiateViewController(withIdentifier: "LockerVC") | ||
else {return} | ||
|
||
/// νλ° μμ΄ν λ³ μ΄λ¦ |
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.
κ·Έλ¬λ€μ!! VCλ³λ‘ λ¬Άμ΄μ μ§μ ν΄μ£Όλ ν¨μ¬ 보기 νΈν κ² κ°μμ!! μ λ μ°Έκ³ ν΄λ³΄λλ‘ νκ² μ΅λλ€!! :)
|
||
nameTextField.snp.makeConstraints { make in | ||
make.top.equalTo(subLabel.snp.bottom).offset(68) | ||
make.leading.trailing.equalToSuperview().inset(22) |
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.
μ΄κ² λ°λ‘ μ€λ ν·μ΄κ΅°μ!! leading, trailing κ°μ΄ μ°λ λ°©λ² μ€μ€ν΄κ°λλ€~!! 22γ γ
π κ΄λ ¨ μ΄μ
closed #4
π λ³κ²½ μ¬ν λ° μ΄μ
μ§λ κ³Όμ λ μ€ν 리보λμμ μ‘μλ μ€ν λ μ΄μμμ μ κ±°νκ³ snapkit λΌμ΄λΈλ¬λ¦¬λ₯Ό μ¬μ©ν΄μ λ μ΄μμμ μ‘μκ³ ,
μ½λλ‘ νλ°λ₯Ό ꡬνν΄μ μ°κ²°ν΄μ€¬μ΅λλ€.
π PR Point
λκ° λ ν¨μ¨μ μΌλ‘ 지 μ μμ κ² κ°λ€λμ§... λ§μ μλ λ€λμ§.. νλ λΆλΆμ΄ μμΌλ©΄ λ€ λ§μν΄μ£ΌμΈμ μ½μ₯ μ΄μ¬ν 곡λΆν΄μμ λ°μνκ² μ΅λλ€
λ§ν¬λ₯Ό μ¨μ μ½λλ€μ μ’ λ 보기 μ½κ² νλ €κ³ νλλ° μ.. 보μ΄μ€κΉμ....
π μ°Έκ³ μ¬ν
λΌμ΄λΈλ¬λ¦¬λ μμ μΆκ°ν κ² λλ¬Έμ νμΌμ΄ κ΅μ₯ν λ§μ κ² κ°μλ°,,, μμ λ겨μ μ½λλΆλΆλ§ μ λ΄μ£Όμλ©΄ κ°μ¬νκ² μ΅λλΉ...
λ€μμ£Ό μνμ΄λΌ ν μκ°μ΄ μμ κ² κ°μμ μΌμ° νλλ°,, μ²μ²ν μ§μ§ μ²μ²ν..! 보μκ³ μ½λ리뷰 ν΄μ£ΌμΈμ..!
μν λΏμκ³ λ¦¬λ·° λ°μνλ¬ μ€κ² μ΄λλ€βοΈ