小编utk*_*tel的帖子

VMware授权服务未运行

Windows无法在本地计算机上启动vmware授权服务.

错误1075:依赖服务不存在或已标记为删除

我已经安装了windows7 home basic, 所以我不打算任何 - 计算机管理中的本地用户和组选项,我已经登录为管理员虽然我无法手动启动服务

vmware service

46
推荐指数
4
解决办法
13万
查看次数

MPMoviePlayerController不播放本地文件

 NSString *path = [[NSBundle mainBundle] pathForResource:@"PTCL" ofType:@"mp4"];    
  NSURL *videoURL = [NSURL URLWithString:path];    
        MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];    
        [moviePlayerController.view setFrame:self.view.frame];
        [self.view addSubview:moviePlayerController.view]; 
        moviePlayerController.controlStyle=MPMediaTypeAnyVideo;
        moviePlayerController.fullscreen = YES;
        [moviePlayerController prepareToPlay];
        [moviePlayerController play];
Run Code Online (Sandbox Code Playgroud)
 NSString *path = [[NSBundle mainBundle] pathForResource:@"PTCL" ofType:@"mp4"];   

path=[NSString stringWithFormat:@"file:/%@",path];   
NSURL *videoURL = [NSURL URLWithString:path];

MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];

[moviePlayerController.view setFrame:self.view.frame];
[self.view addSubview:moviePlayerController.view];

moviePlayerController.shouldAutoplay=YES;
moviePlayerController.controlStyle=MPMediaTypeAnyVideo;
moviePlayerController.fullscreen = YES;
[moviePlayerController prepareToPlay];
[moviePlayerController play];
Run Code Online (Sandbox Code Playgroud)
  • 文件:///Users/utkal/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/F0B3AD63-7E46-4069-8845-8B0C05425CD2/CosMos.app/PTCL.mp4

我得到第一个代码的videURL路径

  • 文件:///Users/utkal/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/F0B3AD63-7E46-4069-8845-8B0C05425CD2/CosMos.app/PTCL.mp4

我正在获取第二个代码的videURL路径.

我有alos使用

NSURL *videoURL = [[NSURL alloc]init];
    videoURL = [[NSBundle mainBundle] URLForResource:@"PTCL" withExtension:@"mp4"];
Run Code Online (Sandbox Code Playgroud)

但我的视频播放器总是显示文件正在加载,没有任何反应.我知道一些我在做错的地方,但我的运气不好.请更正我的错误或告诉我是否有其他方式播放本地视频文件.请.

在此输入图像描述

iphone mpmovieplayercontroller ios ios7

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

sqlite3"无法打开数据库文件" - ios

我在我的项目中使用sqlite3.

  • 在"无法打开数据库文件"的事务(50-60)之后我收到错误,所以检查我的数据库文件路径但是路径是正确的并且文件在那里.
  • 我尝试了在堆栈溢出时讨论的每个解决方案,但没有
    运气.

  • 我检查了我的" DocumentDirectory "路径,在关闭数据库之前完成了所有必要的步骤.喜欢:

    sqlite3_finalize(selectStatement);

    sqlite3_close(数据库);

  • 我不知道如何解决这个问题.我可以检查我的sqlite3数据库是否打开.

    ====================== 1 =========================== =

    +(NSMutableArray*)executeDataSet:(NSString*)query
        {
                NSMutableArray  *arryResult = [[NSMutableArray alloc] initWithCapacity:0];
    
    
            const char *sql = [query UTF8String];
            sqlite3_stmt *selectStatement;
                sqlite3 *database = [DataBaseClass openDataBase];
    
            //prepare the select statement
            int returnValue = sqlite3_prepare_v2(database, sql, -1, &selectStatement, NULL);
            if(returnValue == SQLITE_OK)
            {
              //my code 
            }
    
            }
            //sqlite3_reset(selectStatement);
              // NILOBJECT(selectStatement);
            // NILOBJECT(selectStatement);
            sqlite3_finalize(selectStatement);
            sqlite3_close(database);
    
           return arryResult;
        }
    
    Run Code Online (Sandbox Code Playgroud)

    ==================== 2 ============================= ====

        +(sqlite3 *) openDataBase {
            sqlite3 * edenAdultDatabase;
            NSString * …
    Run Code Online (Sandbox Code Playgroud)

sqlite objective-c ios

3
推荐指数
1
解决办法
4590
查看次数