Skip to content

[BUG]UIView에서 버튼의 색깔을 설정하는 방법  #80

Description

@kjn2149

[Describe the bug]
A clear and concise description of what the bug is.
버튼의 색깔을 바꾸려 시도했으나, 버튼의 색깔이 아닌 뒷배경이 바뀐 상황
[Screenshots]
If applicable, add screenshots to help explain your problem.
Simulator Screenshot - iPhone 15 Pro - 2023-10-23 at 20 51 33
Simulator Screenshot - iPhone 15 Pro - 2023-10-23 at 21 09 47

func changeButtonColor (color: UIColor?) {
anyButton.backgroundColor = color
} 함수를 ButtonTappedView 에 추가한 후,
loginButton.backgroundColor = UIColor(named: "theme01PointColor01")
loginButton.isEnabled = true 위의 코드를

func changeButtonColor (color: UIColor?) {
anyButton.backgroundColor = color
} 위로 바꾸어 해결.

[Branch]
feat/publicpage
[Task]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions