PTFreeTextInputAccessoryView
@interface PTFreeTextInputAccessoryView : UIToolbar <PTOverridable>
/**
* Returns a new instance of a `PTFreeTextInputAccessoryView`.
*/
- (instancetype)initWithToolManager:(PTToolManager *)toolManager textView:(UITextView*)textView NS_DESIGNATED_INITIALIZER;
/**
* A reference to the tool manager.
*/
@property (nonatomic, strong, readonly) PTToolManager* toolManager;
/**
* A reference to the accessory view's associated text view.
*/
@property (nonatomic, strong, readonly) UITextView* textView;
/**
* A reference to the accessory view's font picker button item.
*/
@property (nonatomic, strong, nullable, readonly) UIBarButtonItem *fontPickerButtonItem API_AVAILABLE(ios(13.0));
/**
* A reference to the accessory view's font size button item.
*/
@property (nonatomic, strong, nullable, readonly) UIBarButtonItem *fontSizeButtonItem;
/**
* A reference to the accessory view's font color button item.
*/
@property (nonatomic, strong, nullable, readonly) UIBarButtonItem *fontColorButtonItem;
/**
* A reference to the accessory view's font size stepper button item.
*/
@property (nonatomic, strong, nullable, readonly) UIBarButtonItem *fontSizeStepperButtonItem;
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
@end
Undocumented
-
Returns a new instance of a
PTFreeTextInputAccessoryView
.Declaration
Objective-C
- (nonnull instancetype)initWithToolManager:(nonnull PTToolManager *)toolManager textView:(nonnull UITextView *)textView;
Swift
init(toolManager: PTToolManager, textView: UITextView)
-
A reference to the tool manager.
Declaration
Objective-C
@property (nonatomic, strong, readonly) PTToolManager *_Nonnull toolManager;
Swift
var toolManager: PTToolManager { get }
-
A reference to the accessory view’s associated text view.
Declaration
Objective-C
@property (nonatomic, strong, readonly) UITextView *_Nonnull textView;
Swift
var textView: UITextView { get }
-
A reference to the accessory view’s font picker button item.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) UIBarButtonItem *fontPickerButtonItem;
Swift
var fontPickerButtonItem: UIBarButtonItem? { get }
-
A reference to the accessory view’s font size button item.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) UIBarButtonItem *fontSizeButtonItem;
Swift
var fontSizeButtonItem: UIBarButtonItem? { get }
-
A reference to the accessory view’s font color button item.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) UIBarButtonItem *fontColorButtonItem;
Swift
var fontColorButtonItem: UIBarButtonItem? { get }
-
A reference to the accessory view’s font size stepper button item.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) UIBarButtonItem *fontSizeStepperButtonItem;
Swift
var fontSizeStepperButtonItem: UIBarButtonItem? { get }
-
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
-
Undocumented
Declaration
Objective-C
- (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;