小编Ome*_*bas的帖子

如何使用UIApplication handleOpenURL通知

我正在尝试处理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可以帮助我解决这个问题.

notifications url-scheme uiapplication ios

6
推荐指数
1
解决办法
2万
查看次数

IOS从MS Word中读取文本

我试图从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)

如果有人可以告诉我应该做什么或在哪里环顾四周,那对我来说真的很有帮助,谢谢

iphone ms-word ipad ios

4
推荐指数
1
解决办法
1249
查看次数

标签 统计

ios ×2

ipad ×1

iphone ×1

ms-word ×1

notifications ×1

uiapplication ×1

url-scheme ×1