Class UILabel

    • Constructor Detail

      • UILabel

        public UILabel()
      • UILabel

        public UILabel​(CGRect frame)
      • UILabel

        public UILabel​(NSCoder decoder)
    • Method Detail

      • getText

        public java.lang.String getText()
      • setText

        public void setText​(java.lang.String v)
      • getFont

        public UIFont getFont()
      • setFont

        public void setFont​(UIFont v)
      • getTextColor

        public UIColor getTextColor()
      • setTextColor

        public void setTextColor​(UIColor v)
      • getShadowColor

        public UIColor getShadowColor()
      • setShadowColor

        public void setShadowColor​(UIColor v)
      • getShadowOffset

        public CGSize getShadowOffset()
      • setShadowOffset

        public void setShadowOffset​(CGSize v)
      • getAttributedText

        public NSAttributedString getAttributedText()
        Since:
        Available in iOS 6.0 and later.
      • setAttributedText

        public void setAttributedText​(NSAttributedString v)
        Since:
        Available in iOS 6.0 and later.
      • getHighlightedTextColor

        public UIColor getHighlightedTextColor()
      • setHighlightedTextColor

        public void setHighlightedTextColor​(UIColor v)
      • isHighlighted

        public boolean isHighlighted()
      • setHighlighted

        public void setHighlighted​(boolean v)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean v)
      • getNumberOfLines

        public long getNumberOfLines()
      • setNumberOfLines

        public void setNumberOfLines​(long v)
      • adjustsFontSizeToFitWidth

        public boolean adjustsFontSizeToFitWidth()
      • setAdjustsFontSizeToFitWidth

        public void setAdjustsFontSizeToFitWidth​(boolean v)
      • getMinimumScaleFactor

        public double getMinimumScaleFactor()
        Since:
        Available in iOS 6.0 and later.
      • setMinimumScaleFactor

        public void setMinimumScaleFactor​(double v)
        Since:
        Available in iOS 6.0 and later.
      • allowsDefaultTighteningForTruncation

        public boolean allowsDefaultTighteningForTruncation()
        Since:
        Available in iOS 9.0 and later.
      • setAllowsDefaultTighteningForTruncation

        public void setAllowsDefaultTighteningForTruncation​(boolean v)
        Since:
        Available in iOS 9.0 and later.
      • getPreferredMaxLayoutWidth

        public double getPreferredMaxLayoutWidth()
        Since:
        Available in iOS 6.0 and later.
      • setPreferredMaxLayoutWidth

        public void setPreferredMaxLayoutWidth​(double v)
        Since:
        Available in iOS 6.0 and later.
      • adjustsLetterSpacingToFitWidth

        @Deprecated
        public boolean adjustsLetterSpacingToFitWidth()
        Deprecated.
        Deprecated in iOS 7.0.
        Since:
        Available in iOS 6.0 and later.
      • setAdjustsLetterSpacingToFitWidth

        @Deprecated
        public void setAdjustsLetterSpacingToFitWidth​(boolean v)
        Deprecated.
        Deprecated in iOS 7.0.
        Since:
        Available in iOS 6.0 and later.
      • getTextRect

        public CGRect getTextRect​(CGRect bounds,
                                  long numberOfLines)
      • drawText

        public void drawText​(CGRect rect)