Giter Site home page Giter Site logo

Comments (8)

ashqal avatar ashqal commented on September 13, 2024

不是很确定,不过在PlayerViewController里可以做个限制只支持横屏吧?

from md360player4ios.

Amazingfeel avatar Amazingfeel commented on September 13, 2024

恩, 前一个页面是竖屏, modal到这个页面限制他只支持横屏, 就会出现画面有一部分不显示, 不过画面确实是横屏了, 是不是坐标系没有旋转的问题

from md360player4ios.

ashqal avatar ashqal commented on September 13, 2024

那问题应该出在弹modal的时候给的是竖屏的尺寸了

from md360player4ios.

Jasoncoool avatar Jasoncoool commented on September 13, 2024

也是同样的问题,从竖屏过来,坐标其实是转了,但实际画面没有转,暂时还没有解决好

from md360player4ios.

Jasoncoool avatar Jasoncoool commented on September 13, 2024

解决了 这个其实不算是代码问题, present的时候PlayerViewController的尺寸并没有改变,这时候获取的还是竖屏时候的尺寸,把initParams放在present结束后就不会有这个问题了

from md360player4ios.

ashqal avatar ashqal commented on September 13, 2024

这样吗?

- (void)launch:(NSURL*)url {

    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Player" bundle:nil];
    PlayerViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"PlayerViewController"];

    [self presentViewController:vc animated:YES completion:^{
        [vc initParams:url];
    }];
}

from md360player4ios.

Jasoncoool avatar Jasoncoool commented on September 13, 2024

这样就可以了

from md360player4ios.

ashqal avatar ashqal commented on September 13, 2024

感谢 @Jasoncoool

from md360player4ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.