5
Swift에서 UIBarButtonItem에 대한 동작을 설정하는 방법
Swift에서 사용자 정의 UIBarButtonItem에 대한 작업을 어떻게 설정할 수 있습니까? 다음 코드는 탐색 모음에 버튼을 성공적으로 배치합니다. var b = UIBarButtonItem(title: "Continue", style: .Plain, target: self, action:nil) self.navigationItem.rightBarButtonItem = b 이제 func sayHello() { println("Hello") }버튼을 터치하면 전화하고 싶습니다 . 지금까지 나의 노력 : var b = UIBarButtonItem(title: "Continue", style: …