ASButtonNode
기본 사용법
상태 제어
buttonNode.setTitle("Button Title Normal", with: nil, with: .blue, for: .normal)buttonNode.setAttributedTitle(attributedTitle, for: .normal)Target-Action Pairs
buttonNode.addTarget(self, action: #selector(buttonPressed), forControlEvents: .touchUpInside)컨텐츠 정렬
buttonNode.contentVerticalAlignment = .top
buttonNode.contentHorizontalAlignment = .middletintColor 설정
Last updated
Was this helpful?