を失敗し、これは正常に動作します:iOSのUIScrollViewのsetScrollEnabledはiOS5をで
[descriptionWebView.scrollView setScrollEnabled:NO];
しかし、それはで失敗する5下の任意のiOSに:
[UIWebView scrollView]: unrecognized selector sent to instance 0x791f9e0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIWebView scrollView]: unrecognized selector sent to instance 0x791f9e0'
ああ、おかげさまで大丈夫です。ですから、ios5の場合にのみsetScrollEnabledを適用する条件を作成する必要があります。コードのバージョンを確認するにはどうすればよいですか? – Jesse