iOS Charting Documentation - SciChart iOS Charts SDK v3.x

ISCIString

@protocol ISCIString

Definies the common protocol for NSString and NSAttributedString to be used throughout SciChart.

  • Gets the character contents of this ISCIString

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *rawString;

    Swift

    var rawString: String! { get }
  • Returns attributed string, and applies fontStyle to it if needed.

    Declaration

    Objective-C

    - (NSAttributedString *)attributedStringWithStyle:(SCIFontStyle *)fontStyle;

    Swift

    func attributedString(with fontStyle: SCIFontStyle!) -> NSAttributedString!

    Parameters

    fontStyle

    The fontStyle instance.

    Return Value

    AttributedString with applied fontStyle if needed.

  • Update a UILabel text

    Declaration

    Objective-C

    - (void)updateUILabelText:(UILabel *)label;

    Swift

    func updateUILabelText(_ label: UILabel!)

    Parameters

    label

    The UILabel to update.

  • Needed to be able to cast implementors to ISCIString on Xamarin.iOS side, since it’s impossible there.

    Declaration

    Objective-C

    - (id<ISCIString>)toSciString;

    Swift

    func to() -> ISCIString!