SWIFT:将视频设置为从“扩展屏幕”开始,并且仅在开始时隐藏控件

问题描述

我已经在开始时自动设置了一个视频,并在视频结束时自动将其传递给后续的ViewController,并且启用了控件。

但是,我主要需要播放和暂停控件,但是只有用户在屏幕上的单击才能显示,而不是显示它们的播放基础,然后在1 / 2s后消失。 另外,我想设置视频立即扩展到全屏显示而不出现黑带,该功能执行iOS播放器右上角的按钮。

我该怎么办?

    find() and filter() both methods work with array
    
    let customers = [{
        name: 'ABC Inc',credit: 100
    },{
        name: 'Acme Corp',credit: 200
    },{
        name: 'IoT AG',credit: 300
    }];
    
    What is find()?
    find() method return the first value which match from the collection. find() method search the array from the start if the desired value is matched then find() method return that value and terminate and rest of the array is not process.
    
    
    let findCustomers = customers.find(customer=>{
    return customer.credit<300
    })
    
    console.log(findCustomers)
    
    /// [{
       name: 'ABC Inc',credit: 100
    }];
    
    
    What is filter()?
    filter() method returns the match value from the array. it search whole array from start to end and returns all the value which is matched.
    
    
    let findCustomers = customers.flter(customer=>{
    return customer.credit<300
    })
    
    console.log(findCustomers)
    
    /// [{
    name: 'ABC Inc',credit: 100
},{
    name: 'Acme Corp',credit: 200
}];

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)