Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
qodhrkawk committed Nov 27, 2020
1 parent 7551d1a commit 2a959ee
Show file tree
Hide file tree
Showing 3 changed files with 129 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Mongle/Mongle.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1307,14 +1307,14 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 4YXV56BSN6;
DEVELOPMENT_TEAM = 6ZTQ76LJPZ;
INFOPLIST_FILE = Mongle/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.08;
PRODUCT_BUNDLE_IDENTIFIER = io.github.juhyeoklee.Mongle;
MARKETING_VERSION = 1.09;
PRODUCT_BUNDLE_IDENTIFIER = io.github.juhyeoklee.Mongle12;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
Expand All @@ -1327,14 +1327,14 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 4YXV56BSN6;
DEVELOPMENT_TEAM = 6ZTQ76LJPZ;
INFOPLIST_FILE = Mongle/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.08;
PRODUCT_BUNDLE_IDENTIFIER = io.github.juhyeoklee.Mongle;
MARKETING_VERSION = 1.09;
PRODUCT_BUNDLE_IDENTIFIER = io.github.juhyeoklee.Mongle12;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
Expand Down
4 changes: 4 additions & 0 deletions Mongle/Mongle/Resource/Storyboard/LogIn.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<state key="normal" title="Button"/>
<connections>
<action selector="findIDButtonAction:" destination="kJn-c1-6Jy" eventType="touchUpInside" id="fSY-wn-Dvu"/>
<action selector="findIdButtonAction:" destination="kJn-c1-6Jy" eventType="touchUpInside" id="xU4-bH-mVq"/>
</connections>
</button>
Expand All @@ -108,6 +109,9 @@
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="Button"/>
<connections>
<action selector="findPWButtonAction:" destination="kJn-c1-6Jy" eventType="touchUpInside" id="ujL-eO-Xo6"/>
</connections>
</button>
</subviews>
<constraints>
Expand Down
119 changes: 119 additions & 0 deletions Mongle/Mongle/Source/VCs/LogInVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,48 @@ class LogInVC: UIViewController {
$0.image = UIImage(named: "loginPopupBg")

}

let copyButton = UIButton().then{
$0.setTitle("메일 복사", for: .normal)
$0.setTitleColor(.white, for: .normal)
$0.backgroundColor = .softGreen
$0.makeRounded(cornerRadius: 19)
$0.setBorder(borderColor: .softGreen, borderWidth: 1.0)
$0.addTarget(self, action: #selector(mailCopyButton), for: .touchUpInside)
$0.titleLabel?.font = $0.titleLabel?.font.withSize(13)

}

let mailNoButton = UIButton().then{
$0.setTitle("아니요", for: .normal)
$0.setTitleColor(.softGreen, for: .normal)
$0.backgroundColor = .white
$0.makeRounded(cornerRadius: 19)
$0.setBorder(borderColor: .softGreen, borderWidth: 1.0)
$0.addTarget(self, action: #selector(mailNobuttonAction), for: .touchUpInside)
$0.titleLabel?.font = $0.titleLabel?.font.withSize(13)

}
let mailAlertLabel = UILabel().then {
$0.text = "몽글에 메일로 문의하시겠어요?"
$0.font = $0.font.withSize(15)
$0.textColor = .black

}

let subMailAlertLabel = UILabel().then {
$0.text = "[email protected] 으로\n문의 주시면 계정을 찾아드릴게요! "
$0.font = $0.font.withSize(13)
$0.textColor = .brownGreyThree
$0.numberOfLines = 0
$0.textAlignment = .center

}





var runCount = 0
var runCountForSplash = 0
var shouldBeDismissed = false
Expand Down Expand Up @@ -185,6 +227,22 @@ class LogInVC: UIViewController {


}
@objc func mailCopyButton(){

UIPasteboard.general.string = "[email protected]"
blurView.removeFromSuperview()
alertView.removeFromSuperview()



}

@objc func mailNobuttonAction(){
blurView.removeFromSuperview()
alertView.removeFromSuperview()

}


func animate1(){
self.monglesImageView.transform = CGAffineTransform(translationX: 0, y: -50)
Expand Down Expand Up @@ -597,6 +655,67 @@ class LogInVC: UIViewController {
}


@IBAction func findIDButtonAction(_ sender: Any) {
showMailPopUp()

}

@IBAction func findPWButtonAction(_ sender: Any) {
showMailPopUp()

}

func showMailPopUp(){

self.view.addSubview(blurView)
self.view.addSubview(alertView)


alertView.addSubview(alertImageView)
alertView.addSubview(mailAlertLabel)
alertView.addSubview(subMailAlertLabel)
alertView.addSubview(copyButton)
alertView.addSubview(mailNoButton)

blurView.snp.makeConstraints{
$0.leading.trailing.top.bottom.equalToSuperview()
}

alertView.snp.makeConstraints{
$0.width.equalTo(304)
$0.height.equalTo(233)
$0.center.equalToSuperview()
}
alertImageView.snp.makeConstraints{
$0.leading.trailing.top.bottom.equalToSuperview()
}

mailAlertLabel.snp.makeConstraints{
$0.top.equalToSuperview().offset(84)
$0.centerX.equalToSuperview()
}

subMailAlertLabel.snp.makeConstraints{
$0.top.equalToSuperview().offset(112)
$0.centerX.equalToSuperview()
}

copyButton.snp.makeConstraints{
$0.width.equalTo(127)
$0.height.equalTo(37)
$0.leading.equalToSuperview().offset(20)
$0.bottom.equalToSuperview().offset(-25)
}

mailNoButton.snp.makeConstraints{
$0.width.equalTo(127)
$0.height.equalTo(37)
$0.trailing.equalToSuperview().offset(-16)
$0.bottom.equalToSuperview().offset(-25)
}


}


}
Expand Down

0 comments on commit 2a959ee

Please sign in to comment.