iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIView
@protocol ISCIView <ISCIHitTestable>
Defines protocol which allows to get access to some of the UIView
members.
-
Gets the view frame.
Warning
Do not use frame if view is transformed since it will not correctly reflect the actual location of the view. Use bounds + center instead.Note
Animatable.Declaration
Objective-C
@property (nonatomic, readonly) CGRect frame;
Swift
var frame: CGRect { get }
-
Gets the bounds of the frame. Default bounds is zero origin, frame size.
Note
Animatable.Declaration
Objective-C
@property (nonatomic, readonly) CGRect bounds;
Swift
var bounds: CGRect { get }
-
Gets the center of the frame.
Note
Animatable.Declaration
Objective-C
@property (nonatomic, readonly) CGPoint center;
Swift
var center: CGPoint { get }
-
The default spacing to use when laying out content in the view.
Note
Sizes are inPoints
.Declaration
Objective-C
@property (nonatomic, readonly) UIEdgeInsets layoutMargins;
Swift
var layoutMargins: UIEdgeInsets { get }
-
A Boolean value that determines whether the view’s autoresizing mask is translated into Auto Layout constraints.
Declaration
Objective-C
@property (nonatomic) BOOL translatesAutoresizingMaskIntoConstraints;
Swift
var translatesAutoresizingMaskIntoConstraints: Bool { get set }
-
A Boolean value that determines whether user events are ignored and removed from the event queue.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isUserInteractionEnabled) BOOL userInteractionEnabled;
Swift
var isUserInteractionEnabled: Bool { get set }
-
A Boolean value that determines whether the view is hidden.
Declaration
Objective-C
@property (nonatomic, getter=isHidden) BOOL hidden;
Swift
var isHidden: Bool { get set }
-
A Boolean value that determines whether the view is opaque.
Declaration
Objective-C
@property (nonatomic, getter=isOpaque) BOOL opaque;
Swift
var isOpaque: Bool { get set }
-
Adds a view to the end of the receiver’s list of subviews.
Declaration
Objective-C
- (void)addSubview:(nonnull UIView *)view;
Swift
func addSubview(_ view: UIView)
-
Invalidates the current layout of the receiver and triggers a layout update during the next update cycle. Allows to perform layout before the drawing cycle happens.
Declaration
Objective-C
- (void)setNeedsLayout;
Swift
func setNeedsLayout()
-
Lays out the subviews immediately, if layout updates are pending.
Declaration
Objective-C
- (void)layoutIfNeeded;
Swift
func layoutIfNeeded()
-
Marks the receiver’s entire bounds rectangle as needing to be redrawn.
Declaration
Objective-C
- (void)setNeedsDisplay;
Swift
func setNeedsDisplay()