Skip to content
Open

Beom #23

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
12 changes: 12 additions & 0 deletions Better-me-iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
28EFD48F298A79EF0092E210 /* GoodHabitTipsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28EFD48E298A79EF0092E210 /* GoodHabitTipsViewController.swift */; };
28EFD496298AA2FC0092E210 /* PushAlertViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28EFD495298AA2FC0092E210 /* PushAlertViewController.swift */; };
28EFD498298AAB620092E210 /* AlertTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 28EFD497298AAB620092E210 /* AlertTableViewCell.swift */; };
5E31F9BA299CC49100EB1297 /* AwardMainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E31F9B9299CC49100EB1297 /* AwardMainViewController.swift */; };
5E31F9BC299D117900EB1297 /* AwardImageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E31F9BB299D117900EB1297 /* AwardImageViewController.swift */; };
5E31F9BE299D607700EB1297 /* AwardBadHabitImageViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5E31F9BD299D607700EB1297 /* AwardBadHabitImageViewController.swift */; };
BE26CD08297805A900E97A05 /* AlertViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE26CD07297805A900E97A05 /* AlertViewController.swift */; };
BE532E742975A41800DDA6EA /* BadHabitDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE532E732975A41800DDA6EA /* BadHabitDetailViewController.swift */; };
BE5F4EC2296D8F640064A93C /* RemoveBadHabitViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE5F4EC1296D8F640064A93C /* RemoveBadHabitViewController.swift */; };
Expand Down Expand Up @@ -59,6 +62,9 @@
28EFD493298A9FD50092E210 /* second.apn */ = {isa = PBXFileReference; lastKnownFileType = text; path = second.apn; sourceTree = "<group>"; };
28EFD495298AA2FC0092E210 /* PushAlertViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PushAlertViewController.swift; sourceTree = "<group>"; };
28EFD497298AAB620092E210 /* AlertTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertTableViewCell.swift; sourceTree = "<group>"; };
5E31F9B9299CC49100EB1297 /* AwardMainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AwardMainViewController.swift; sourceTree = "<group>"; };
5E31F9BB299D117900EB1297 /* AwardImageViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AwardImageViewController.swift; sourceTree = "<group>"; };
5E31F9BD299D607700EB1297 /* AwardBadHabitImageViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AwardBadHabitImageViewController.swift; sourceTree = "<group>"; };
BE26CD07297805A900E97A05 /* AlertViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlertViewController.swift; sourceTree = "<group>"; };
BE532E732975A41800DDA6EA /* BadHabitDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BadHabitDetailViewController.swift; sourceTree = "<group>"; };
BE5F4EC1296D8F640064A93C /* RemoveBadHabitViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemoveBadHabitViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -158,6 +164,9 @@
BE26CD07297805A900E97A05 /* AlertViewController.swift */,
BE82D332298D191A003EFE44 /* EditViewController.swift */,
280F5E542983B23A000A30B3 /* MyPage */,
5E31F9B9299CC49100EB1297 /* AwardMainViewController.swift */,
5E31F9BB299D117900EB1297 /* AwardImageViewController.swift */,
5E31F9BD299D607700EB1297 /* AwardBadHabitImageViewController.swift */,
);
path = "Better-me-iOS";
sourceTree = "<group>";
Expand Down Expand Up @@ -237,12 +246,15 @@
BE5F4EC6296E7CC90064A93C /* SearchFriendViewController.swift in Sources */,
28BFE250298B83A700176731 /* GoodTipsCell.swift in Sources */,
280F5E5E2983B25F000A30B3 /* PWEditController.swift in Sources */,
5E31F9BE299D607700EB1297 /* AwardBadHabitImageViewController.swift in Sources */,
280F5E5B2983B25F000A30B3 /* MyPageViewController.swift in Sources */,
280F5E5C2983B25F000A30B3 /* MyPageCell.swift in Sources */,
BEF940C029753F8500D0F1FD /* GoodHabitDetailViewController.swift in Sources */,
BECC4B4D296C3E1F0037807F /* AddGoodHabitViewController.swift in Sources */,
280F5E5D2983B25F000A30B3 /* ProfileEditController.swift in Sources */,
28EFD48D298A3ABE0092E210 /* WithdrawalViewController.swift in Sources */,
5E31F9BC299D117900EB1297 /* AwardImageViewController.swift in Sources */,
5E31F9BA299CC49100EB1297 /* AwardMainViewController.swift in Sources */,
BECC4B3D296C3AB60037807F /* HomeViewController.swift in Sources */,
BE26CD08297805A900E97A05 /* AlertViewController.swift in Sources */,
BECC4B39296C3AB60037807F /* AppDelegate.swift in Sources */,
Expand Down
23 changes: 23 additions & 0 deletions Better-me-iOS.xcworkspace/xcshareddata/swiftpm/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 Better-me-iOS/Assets.xcassets/AwardAward.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "AwardAward.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "AwardBorderimg.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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 Better-me-iOS/Assets.xcassets/AwardEx_1.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "AwardEx_1.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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 Better-me-iOS/Assets.xcassets/AwardEx_2.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "AwardEx_2.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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 Better-me-iOS/Assets.xcassets/AwardLine.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "AwardLine.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
21 changes: 21 additions & 0 deletions Better-me-iOS/Assets.xcassets/award_Award.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "award_Award.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "award_ProfileBorder.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "award_WaterMark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "award_bettermeMark.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 83 additions & 0 deletions Better-me-iOS/AwardBadHabitImageViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
//
// AwardImageViewController.swift
// Better-me-iOS
//
// Created by 염승범 on 2023/02/15.
//

import UIKit

class AwardBadHabitImageViewController:UIViewController{
// MARK: @IBOutlet
@IBOutlet weak var AwardImg: UIImageView!
@IBOutlet weak var AwardNameLabel: UILabel!
@IBOutlet weak var SecondTitleLabel: UILabel!
@IBOutlet weak var NameLabel: UILabel!

@IBOutlet weak var AwardInfoLabel: UILabel!
@IBOutlet weak var SecAwardNameLabel: UILabel!
@IBOutlet weak var DateLabel: UILabel!

@IBOutlet weak var NowDateLabel: UILabel!
@IBOutlet weak var BetterMeLabel: UILabel!



override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
configureAwardNameViewUI()

configureAwardImgViewUI()

}
func parentDo(Entity:UILabel, Width:CGFloat, Height:CGFloat, X:CGFloat , Y:CGFloat )->Void{
let parent = Entity
view.addSubview(Entity)
//view.bringSubviewToFront(parent)
Entity.translatesAutoresizingMaskIntoConstraints = false
Entity.widthAnchor.constraint(equalToConstant: Width).isActive = true
Entity.heightAnchor.constraint(equalToConstant: Height).isActive = true
Entity.leadingAnchor.constraint(equalTo: parent.leadingAnchor, constant: X).isActive = true
Entity.topAnchor.constraint(equalTo: parent.topAnchor, constant: Y).isActive = true


}
func configureAwardImgViewUI(){
let image0 = self.AwardImg
let layer0 = CALayer()
layer0.contents = image0
layer0.transform = CATransform3DMakeAffineTransform(CGAffineTransform(a: 1, b: 0, c: 0, d: 1, tx: 0, ty: 0))
layer0.bounds = view.bounds
layer0.position = view.center
view.layer.addSublayer(layer0)
}
func configureAwardNameViewUI(){
view.backgroundColor = .white

AwardNameLabel.font = UIFont(name: "AppleSDGothicNeo-SemiBold", size: 13)
SecondTitleLabel.font = UIFont(name: "AppleSDGothicNeo-SemiBold", size: 13)
NameLabel.font = UIFont(name: "AppleSDGothicNeo-SemiBold", size: 13)
AwardInfoLabel.font = UIFont(name: "AppleSDGothicNeo-SemiBold", size: 13)
SecAwardNameLabel.font = UIFont(name: "AppleSDGothicNeo-SemiBold", size: 13)
DateLabel.font = UIFont(name: "AppleSDGothicNeo-SemiBold", size: 13)
NowDateLabel.font = UIFont(name: "AppleSDGothicNeo-SemiBold", size: 13)
BetterMeLabel.font = UIFont(name: "AppleSDGothicNeo-SemiBold", size: 13)
AwardInfoLabel.numberOfLines = 3


let paragraphStyle = NSMutableParagraphStyle()

paragraphStyle.lineHeightMultiple = 1.17
AwardNameLabel.attributedText = NSMutableAttributedString(string: "상장명 : 마 니 서마터폰 중독이다📱 ", attributes: [NSAttributedString.Key.paragraphStyle: paragraphStyle])
SecondTitleLabel.attributedText = NSMutableAttributedString(string: "부문 : 나쁜 습관 없애기", attributes: [NSAttributedString.Key.paragraphStyle: paragraphStyle])
NameLabel.attributedText = NSMutableAttributedString(string: "이름 : 김유니", attributes: [NSAttributedString.Key.paragraphStyle: paragraphStyle])
AwardInfoLabel.attributedText = NSMutableAttributedString(string: "위 사람은 긴 기간동안 성실하게 정진하여\n다음과 같은 나쁜 습관을 제거하였으므로\n이 상장을 수여하여 칭찬합니다.", attributes: [NSAttributedString.Key.paragraphStyle: paragraphStyle])
SecAwardNameLabel.attributedText = NSMutableAttributedString(string: "[ 스마트폰 사용시간 하루 4시간 안넘기기 ]", attributes: [NSAttributedString.Key.paragraphStyle: paragraphStyle])
DateLabel.attributedText = NSMutableAttributedString(string: "2022.01.01 ~ 2022.01.22", attributes: [NSAttributedString.Key.paragraphStyle: paragraphStyle])
NowDateLabel.attributedText = NSMutableAttributedString(string: "2023.02.16", attributes: [NSAttributedString.Key.paragraphStyle: paragraphStyle])
BetterMeLabel.attributedText = NSMutableAttributedString(string: "Better me", attributes: [NSAttributedString.Key.paragraphStyle: paragraphStyle])
//parentDo(Entity: AwardNameLabel, Width: 174, Height: 18, X: 56, Y: 248)

}
}
Loading