UIWebView のスクロールを無効にしようとしていますが、見つけた唯一の方法はこの方法を使用することです:
#import <objc/runtime.h>
id scroller = [[Webview subviews] lastObject];
int count;
Method *method = class_copyMethodList([scroller class], &count);
int i;
for (i=0; i<count; i++) {
if (strcmp(method_getName(method[i]), "setScrollingEnabled:") == 0)
break;
}
IMP test = method_getImplementation(method[i]);
test(scroller, @selector(setScrollingEnabled:), NO);
これは iPhone SDK の違法な使用方法と見なされますか? これにより、App Store への申請が拒否される可能性はありますか?