---
title: WKInterfaceLabel
framework: watchkit
role: symbol
role_heading: Class
path: watchkit/wkinterfacelabel
---

# WKInterfaceLabel

An interface element that displays static text.

## Declaration

```swift
class WKInterfaceLabel
```

## Mentioned in

Connecting Your User Interface to Your Code

## Overview

Overview Use WKInterfaceLabel to manipulate the contents of a label at runtime, such as setting a new text string. The string you specify can use the default styling you specified at design time, or you can use an attributed string to add custom styling to the text. Do not subclass or create instances of this class yourself. Instead, define outlets in your interface controller class and connect them to the corresponding objects in your storyboard file. For example, to refer to a label object in your interface, define a property with the following syntax in your interface controller class: During the initialization of your interface controller, WatchKit creates any needed label objects and assigns them to their connected outlets. At that point, you can use those objects to make changes to the onscreen text. Label objects apply the font and style information specified in your storyboard. You can specify a different set of style attributes by calling the setAttributedText(_:) method and providing an appropriately formatted attributed string object. When specifying text with an NSString object, the only other change you can make is to the text color. Interface Builder Configuration Options Xcode lets you configure information about your label interface object in your storyboard file. The following table lists the attributes you can configure and their meaning.  |   |   |   |   |   |   |   |

## Topics

### Setting the Label Text

- [setText(_:)](watchkit/wkinterfacelabel/settext(_:).md)
- [setTextColor(_:)](watchkit/wkinterfacelabel/settextcolor(_:).md)
- [setAttributedText(_:)](watchkit/wkinterfacelabel/setattributedtext(_:).md)

## Relationships

### Inherits From

- [WKInterfaceObject](watchkit/wkinterfaceobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Controls

- [WKInterfaceDate](watchkit/wkinterfacedate.md)
- [WKInterfaceTimer](watchkit/wkinterfacetimer.md)
- [WKInterfaceButton](watchkit/wkinterfacebutton.md)
- [WKInterfaceAuthorizationAppleIDButton](watchkit/wkinterfaceauthorizationappleidbutton.md)
- [WKInterfacePaymentButton](watchkit/wkinterfacepaymentbutton.md)
- [WKInterfaceTextField](watchkit/wkinterfacetextfield.md)
- [WKInterfaceSwitch](watchkit/wkinterfaceswitch.md)
- [WKInterfaceSlider](watchkit/wkinterfaceslider.md)
- [WKInterfaceActivityRing](watchkit/wkinterfaceactivityring.md)
- [WKInterfaceMap](watchkit/wkinterfacemap.md)
