MLKWritingArea
@interface MLKWritingArea : NSObject
書寫區域的屬性。
書寫區域是指螢幕上使用者可繪圖的區域。
-
寫入區域寬度,單位與
StrokePoint
中使用的單位相同。聲明
Objective-C
@property (nonatomic, readonly) float width;
-
寫入區域高度,方法與
StrokePoint
中使用的單位相同。聲明
Objective-C
@property (nonatomic, readonly) float height;
-
無法使用,請改用
init(width:height:)
。聲明
Objective-C
- (nonnull instancetype)init;
-
初始化並傳回具有指定維度的
WritingArea
。兩個維度應使用相同的單位,而且必須與
Ink
和相關物件中使用的單位相符。聲明
Objective-C
- (nonnull instancetype)initWithWidth:(float)width height:(float)height;
參數
width
書寫區域的寬度。
height
書寫區域的高度。