Skip to content
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

[FEAT] #216 - 명함 이미지 렌더링해서 앨범에 저장 구현 #222

Merged
merged 3 commits into from
Dec 25, 2021

Conversation

hyun99999
Copy link
Member

@hyun99999 hyun99999 commented Dec 25, 2021

🌴 PR 요약

🌱 작업한 브랜치

🌱 작업한 내용

  • 공유하기 때 QR 이미지와 명함이미지 저장을 위해서 card 데이터가 필요
    -> 메인에서 mainCell 을 만들 때 card 데이터를 통째로 넘김
    -> front,backCardCell 에서 공유하기 버튼이 눌리면 card 데이터를 노티피케이션으로 전송
    -> 공유하기 바텀시트에서 활용 가능

이준선배~ userID 만 뽑아서 쓰면돼 ^^
명함 이미지를 둥글게 저장하는 방법을 지금 못찾아서.. 일단 노션에 이슈 남겨뒀습니다! 근데 저장할 때 CGRect 으로 받아서 정말 이악물고 한다면 bezierpath 로 둥근 사각형을 이악물고 만드는 방법이 있을거 같은데.. 일단 다른 방법부터 찾아볼게요!

📸 스크린샷

기능 스크린샷
저장되는앞면
저장되는뒷면

📮 관련 이슈

- 정적인 card 데이터 가지고 이미지 렌더링 후 앨범 저장
- 메인에서 card 데이터를 메서드로 가져와서 공유하기 시 노티를 이용해서 전달
@hyun99999 hyun99999 added Hyungyu 🐯 현규 교수님 작업 P1 / Priority High 우선순위 높음 Feat 새로운 기능 구현 labels Dec 25, 2021
@hyun99999 hyun99999 self-assigned this Dec 25, 2021
Copy link
Member

@dlwns33 dlwns33 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다 선생님..

_ firstTMI: String,
_ secondTMI: String,
_ thirdTMI: String,
func initCellFromServer(cardData: Card,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

깔끔합니다~

Comment on lines +117 to +118
UIImageWriteToSavedPhotosAlbum(frontCardImage, self, #selector(image(_:didFinishSavingWithError:contextInfo:)), nil)
UIImageWriteToSavedPhotosAlbum(backCardImage, self, #selector(image(_:didFinishSavingWithError:contextInfo:)), nil)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오... 이거 공부해봐야겠어요 🤩

Copy link
Member Author

@hyun99999 hyun99999 Dec 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거하면서 selector 도 다시금 봤어여 notificationcenter 에서는 selector 의 매개변수로 object 가 넘어왔듯이 이거는 세개를 쓰더라구요!
개발자문서에서 UIImageWriteToSavedPhotosAlbum 의 selector 는 필수요소로 가지는 메서드를 만들어야한다면서 알려주더라구요,..
그냥 들어가서 슥보는것도 괜찮을거 같아여

Apple Developer Documentation

@hyun99999 hyun99999 merged commit 730d8c6 into release1.0/2 Dec 25, 2021
@hyun99999 hyun99999 deleted the release1.0/#216 branch December 25, 2021 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feat 새로운 기능 구현 Hyungyu 🐯 현규 교수님 작업 P1 / Priority High 우선순위 높음
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 명함 이미지 렌더링해서 앨범에 저장 구현
2 participants