I tried this:
[myWKButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
I get the error:
property titlelabel not found on object of type wkinterfacebutton
How can I accomplish this?
I tried this:
[myWKButton.titleLabel setTextAlignment: NSTextAlignmentCenter];
I get the error:
property titlelabel not found on object of type wkinterfacebutton
How can I accomplish this?
The WKInterfaceButton class has no
titleLabel
property, which is the reason you are getting this error. To set the alignment of the title, use itsattributedTitle
property.