代码如下:
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
NSString *str = @"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '120%'";
[webView stringByEvaluatingJavaScriptFromString:str];
}
key----View controller-based status bar appearance
value---NO
在appDelegate里面添加代码:
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
UIScreenEdgePanGestureRecognizer *screenEdgePanGestureRecognizer = [[UIScreenEdgePanGestureRecognizer alloc] initWithTarget:self action:@selector(screenEdgePanGestureRecognizerHanlde:)];
screenEdgePanGestureRecognizer.edges = UIRectEdgeRight;
[self.view addGestureRecognizer:screenEdgePanGestureRecognizer];
- (void)screenEdgePanGestureRecognizerHanlde:(UIScreenEdgePanGestureRecognizer *)screenEdgePanGestureRecognizer {
NSLog(@"screenEdgePanGestureRecognizer");
}
//知道怎么用私有api,要怎么获得
//要导入#import
NSString *className = NSStringFromClass([UIView class]);
//这里是uiview,可以改成自己想要的
const char *cClassName = [className UTF8String];
id theClass = objc_getClass(cClassName);
unsigned int outCount;
Method *m = class_copyMethodList(theClass,&outCount;);
NSLog(@"%d",outCount);
for (int i = 0; i
NSString *sn = NSStringFromSelector(a);
NSLog(@"%@",sn);
}