問題タブ [sublayout]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
158 参照

ios - Swift での UIView 境界へのサブレイヤーのサイズ変更

AVCaptureVideoPreviewLayer を UIView 要素のサブレイヤーとして配置しようとしています。以下を使用して、フレームを UIView 境界に設定しようとしました。

フレームと境界の値を印刷しようとすると、次のようになります。

実際のアプリケーションでは、サブレイヤーが UIView 要素全体を埋め尽くすことはありません。

エラー

これを解決する方法を知っている人はいますか?