共享沙盒

  @property (nonatomic,strong)UIDocumentInteractionController* document;

-(void)bPlayClick:(UIButton *)btn
{
    NSString *docu = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES) lastObject];
    NSString *filePath = [docu stringByAppendingPathComponent:@"1.pcm"];
    NSURL *url = [NSURL fileURLWithPath:filePath];
    
    self.document = [UIDocumentInteractionController interactionControllerWithURL:url];
    [self.document presentOptionsMenuFromRect:self.view.bounds inView:self.view animated:YES];
   
}



from:http://blog.csdn.net/shxwork/article/details/50579836

    

猜你喜欢

转载自blog.csdn.net/wzw88486969/article/details/76400698