-
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
홈 화면의 책 드랍다운 버튼 클릭 시 UIMenu 로직 구현 #114
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
iceHood
approved these changes
Dec 2, 2024
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.
너무 좋아요! 짱짱맨..
k2645
approved these changes
Dec 2, 2024
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.
LGTM ~~ 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#️⃣ 연관된 이슈
⏰ 작업 시간
📝 작업 내용
'책커버 삭제'만 구현해뒀습니다
📸 스크린샷
📚 리뷰노트
UIButton의 menu
UIButton에는 Menu라는 프로퍼티가 있다.
iOS 14버전 이상부터 쓸 수 있음 !!
근데 기본적으로 버튼에 들어가는 menu는 꾹 눌러야 메뉴가 뜬다.
그러면 나처럼 클릭했을 때 바로 menu가 보이게 하려면 어떻게 할까 ??
처음에 addAction이나 addTarget에 넣어야 하나 했지만, 이런게 있었다
얘를 true로 설정해주면 버튼을 꾹 누르지 않고도, 클릭 한 번으로 메뉴를 나오게 할 수 있다 !!
수정된 나의 코드