내 iOS 애플리케이션에서 UIAlertController를 사용하여 손쉬운 개인 정보 취급 방침을 구현하려고합니다. 법에 따르면 요즘 대부분의 개인 정보 보호 정책처럼 정책을 스크롤 할 수 있어야 허용됩니다.Swift에서 개인 정보 취급 방침 만들기 : 메시지가 맨 아래로 스크롤 될 때까지 UIAlertController 동작 버튼을 비활성화하는 방법
내 자신의 연구에서 UIAlertAction 버튼을 비활성화하고 활성화 할 수 있다고 보았지만 UIAlertController 메시지 본문이 스크롤 된 시점을 식별하는 방법을 알지 못합니다. 맨 아래로 스크롤하는 것은 필수 사항 일 수 있으며 나는 또한 작동 할 수있는 방법을 찾는 데 관심이 있습니다.
다음은 위의 UIAlertController보고 기본에 내 현재 코드입니다. 다음과 같이
let alertController = UIAlertController(title: "Privacy Policy", message: privacyPolicyString, preferredStyle: UIAlertControllerStyle.Alert)
let AcceptAction = UIAlertAction(title: "Accept", style: UIAlertActionStyle.Default, handler: {(action: UIAlertAction) -> Void in
//perform next step in login verification
})
let DeclineAction = UIAlertAction(title: "Decline", style: UIAlertActionStyle.Default, handler: {(action: UIAlertAction) -> Void in
//User has declined privacy policy. The view resets to standard login state
})
alertController.addAction(AcceptAction)
alertController.addAction(DeclineAction)
self.presentViewController(alertController, animated: true, completion: nil)
버튼 –