iOS 7 Simulator Bug - NSAttributedString does not appear

前端 未结 3 1384
暖寄归人
暖寄归人 2021-01-19 05:32

UPDATE: I have just encountered this issue on an actual iPhone 5 running iOS 7. Will provide more information soon.

I think I have found a bug in the iOS 7 Simulat

3条回答
  •  粉色の甜心
    2021-01-19 06:01

    This Worked for me

    //Swift
    let underlineAttribute = [NSUnderlineStyleAttributeName:NSNumber(int: 1)];
    lblMessage.attributedText = NSAttributedString(string: "Your text", attributes: underlineAttribute)
    //Am33t
    

提交回复
热议问题