我正在尝试处理UIApplication Notifications以在当前打开的视图中获取URL Schemes.我尝试了几个通知,但我不知道哪个对象包含URL Schemes.
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
//[nc addObserver:self selector:@selector(DocumentToDropboxDelegate) name:UIApplicationWillResignActiveNotification object:nil];
[nc addObserver:self selector:@selector(DocumentToDropboxDelegate) name:UIApplicationDidFinishLaunchingNotification object:nil];
Run Code Online (Sandbox Code Playgroud)
有人pelase可以帮助我解决这个问题.
我试图从MS Word文档(.doc,.docx,.docs)中读取文本.我从最后一天开始搜索,但没有找到任何解决方案.请任何人告诉我该怎么办?我已经尝试过UIWebview从javascript获取文本,这也不行.
- (NSString *)textFromWordDocument:(NSString *)path {
UIWebView *theWebView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
NSURL *url = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:url];
[theWebView loadRequest:request ];
NSString *document = [theWebView stringByEvaluatingJavaScriptFromString:@"document.documentElement.innerText"];
[theWebView release];
return document;
}
Run Code Online (Sandbox Code Playgroud)
如果有人可以告诉我应该做什么或在哪里环顾四周,那对我来说真的很有帮助,谢谢