몇 가지 버튼이 설정된 UIActionsheet가 있습니다. 실행 취소 기능을 추가하는 방법은 무엇입니까? UITextfields를 사용하고 있습니다.UIActionSheet 내의 Undo 버튼
0
A
답변
0
원하는 UITextField의 NSUndoManager
개체에서 undo
메서드를 호출하도록 적절한 UIActionSheet 단추를 설정합니다. iOS 3.0 이상의 모든 UITextField 및 UITextView 객체에는 조작의 실행 취소 및 재실행을 관리하고 액세스하는 데 사용할 수있는 undoManager
객체가 있습니다.
(UIActionSheetDelegate 메소드 구현)
- (void) actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == /*undo index*/)
[yourTextField.undoManager undo];
}
편집 : 필요한 코드를 이런 식으로 뭔가를 갈 것이라고이 당신이 그것을 필요로해야와 난 당신이 Apple documentation for Undo Managers 볼 제안은 추가로 도움이 될 것입니다.
0
관련 문제
- 1. WPF의 Visual Studio 스타일 Undo/Redo 버튼
- 2. 취소 버튼 및 UIActionSheet 관련 문제
- 3. UIActionSheet 사용자 정의
- 4. 초록색 UIActionSheet 버튼을 만드시겠습니까?
- 5. Flex Text Control Undo
- 6. Photoshop Undo System
- 7. oracle-undo tablespace
- 8. UIActionSheet Tinting
- 9. DOJO A Grid 내의 버튼
- 10. WPF - 템플릿 내의 버튼 숨기기
- 11. JVM에서 "Undo Method Calls"지원
- 12. OpenTk Project에 Undo 옵션 넣기
- 13. UIActionSheet 및 UIView
- 14. UIActionSheet 사용자 정의
- 15. UIActionSheet Like Button
- 16. UIActionsheet 오리엔테이션 문제
- 17. 작업 후 UIActionSheet 변경
- 18. iPad NSInternalInconsistencyException UIActionSheet showInView
- 19. iPad UIActionSheet in modalView
- 20. UIACtionSheet 대리자 질문
- 21. UIActionSheet cancelButtonTitle ipad
- 22. 여러 개의 UIActionSheet 표시
- 23. UIActionSheet UI 사양
- 24. 앵커 레이아웃 내의 가로 버튼 그룹
- 25. iPhone SDK : UIActionsheet Delegate Method가 호출되지 않습니다
- 26. iPhone : UIActionSheet 문제로 UIWebview 표시
- 27. UIActionSheet 대리자에서의 ViewController의 변수 액세스
- 28. jQuery 및 HTML5 DOM 변경 UNDO 함수
- 29. iPhone SDK에서 UIActionSheet 버튼처럼 보이는 버튼을 만드는 방법은 무엇입니까?
- 30. ModalPopupExtender가 updatepanel 내의 버튼 포스트 백에 표시되지 않음
버튼 인덱스를 사용하여 모든 설정을했는데, 여전히이 문제를 해결하는 데 문제가 있습니다. – TWcode