問題タブ [nslayoutmanager]

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 に答える
855 参照

swift - Swift UITextView LayoutManager サブクラス

a をサブクラス化しようとしていUITextViewますlayoutManager

しかし、クラッシュが発生し続けます。私が見てきた例はObjective Cにあるので、layoutManagerをどのように変更するべきか少し混乱しています

これが私のコードです...

}

使用中...

コンパイルはしますが、次の行でクラッシュします。

UITextViewのLayoutManagerをサブクラス化する正しい方法は何ですか?

ありがとう