摘要:
//加载本地pdf到webview-(void)loadDocument:(NSString*)documentName inView:(UIWebView*)webView{ NSString *path = [[NSBundle mainBundle] pathForResource:documentName ofType:nil]; NSURL *url = [NSURL fileURLWithPath:path]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; [webView loadRequest:re... 阅读全文
摘要:
//判断是ipad还是iphone-(BOOL)IsIPhone{ BOOL isPhone = NO; if(UI_USER_INTERFACE_IDIOM()) isPhone = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone); return isPhone;} 阅读全文