私はこのようなことをしようとしています: まず、起動時に「同意する」ボタンが無効になり、ユーザーはテキストビュー領域の利用規約を読む必要があり、同意するボタンが有効になります。これまでのコードは次のとおりです。誰か提案をいただけますか?
- (IBAction)acceptAction:(id)sender {
if ([self.termConditionTextView scrollsToTop] == true) {
[acceptButtonOutlet setEnabled:NO];
[[[UIAlertView alloc] initWithTitle:@"Term & Condition" message:@"Please read term & condition first. Thank you." delegate:nil cancelButtonTitle:@"Back" otherButtonTitles:nil] show];
} else {
[acceptButtonOutlet setEnabled:YES];
}
}