Author Topic: UILabel displays nothing When the text is something like "[xx]"  (Read 1701 times)

JackRabbit

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
UILabel displays nothing When the text is something like "[xx]"
« on: September 23, 2014, 05:02:55 AM »
There is a strange question.

UILabel lab;
lab.text = "[xx]";

The UILabel displays nothing when the text is [] and two letters in it.
Can anyone tell me why. :-\

Yukichu

  • Full Member
  • ***
  • Thank You
  • -Given: 3
  • -Receive: 8
  • Posts: 101
    • View Profile
Re: UILabel displays nothing When the text is something like "[xx]"
« Reply #1 on: September 23, 2014, 07:05:15 AM »
Brackets indicate color code, or other codes for bolt, italic, etc.

http://www.tasharen.com/?page_id=166

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UILabel displays nothing When the text is something like "[xx]"
« Reply #2 on: September 23, 2014, 12:22:13 PM »
That's a link for NGUI 2 documentation. This is NGUI 3: http://www.tasharen.com/forum/index.php?topic=6706.0