zoukankan      html  css  js  c++  java
  • iOS编程陷井2,模拟器不可靠 不及格的程序员

    同样的代码,模拟器下不工作,真机下可以循环播放。


    MPMoviePlayerController *theMovie = [[MPMoviePlayerControlleralloc] initWithContentURL:[NSURLfileURLWithPath:[[NSBundlemainBundle] pathForResource:@"***"ofType:@"mp4"] ]];

    theMovie.repeatMode=MPMovieRepeatModeOne;

    theMovie.view.frame = self.view.bounds;

    [self.view addSubview:theMovie.view];

    theMovie.scalingMode = MPMovieScalingModeAspectFill;

  • 相关阅读:
    css相关
    文章管理列表
    高性能MySQL基础篇
    mysql
    node.js开发实战
    React Hooks
    client-*,scroll-*,offset-*的区别
    将create-react-app从javascript迁移到typescript
    为Github项目添加Travis持续集成服务
    cookie储存
  • 原文地址:https://www.cnblogs.com/ioriwellings/p/2263287.html
Copyright © 2011-2022 走看看