2009년 1월 22일 목요일

backBarButtonItem 에 select 를 지정할 수 없다.

backBarButtonItem 의 action 을 받을 수 있을거라고 생각했는데, 불가능하다. 이유는 아래의 backBarButtonItem 에 잘 나와 있다. target, action 은 nil 로 설정되야 한다. 따라서 backButton 이 눌렸을때 특별한 처리를 할 수 없다. backBarButtonItem 을 hide 하고 leftBarButtonItem 을 customizing 해야 가능하다. 하지만! backBarButtonItem 모양의 버튼을 만들 수 없다는 단점이 있다.

Discussion
When this item is the back item of the navigation bar—when it is the next item below the top item—it may be represented as a back button on the navigation bar. Use this property to specify the back button. The target and action of the back bar button item you set should be nil. The default value is a bar button item displaying the navigation item’s title.