-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
- 정적인 card 데이터 가지고 이미지 렌더링 후 앨범 저장
- 메인에서 card 데이터를 메서드로 가져와서 공유하기 시 노티를 이용해서 전달
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.
감사합니다 선생님..
_ firstTMI: String, | ||
_ secondTMI: String, | ||
_ thirdTMI: String, | ||
func initCellFromServer(cardData: Card, |
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.
깔끔합니다~
UIImageWriteToSavedPhotosAlbum(frontCardImage, self, #selector(image(_:didFinishSavingWithError:contextInfo:)), nil) | ||
UIImageWriteToSavedPhotosAlbum(backCardImage, self, #selector(image(_:didFinishSavingWithError:contextInfo:)), nil) |
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.
이거하면서 selector 도 다시금 봤어여 notificationcenter 에서는 selector 의 매개변수로 object 가 넘어왔듯이 이거는 세개를 쓰더라구요!
개발자문서에서 UIImageWriteToSavedPhotosAlbum 의 selector 는 필수요소로 가지는 메서드를 만들어야한다면서 알려주더라구요,..
그냥 들어가서 슥보는것도 괜찮을거 같아여
🌴 PR 요약
🌱 작업한 브랜치
🌱 작업한 내용
-> 메인에서 mainCell 을 만들 때 card 데이터를 통째로 넘김
-> front,backCardCell 에서 공유하기 버튼이 눌리면 card 데이터를 노티피케이션으로 전송
-> 공유하기 바텀시트에서 활용 가능
📸 스크린샷
📮 관련 이슈