Forum Xamarin.iOS


pratikpratik USMember

I have a problem with UIButton. I am trying to set text of UIButton using
UIButton.TitleLabel.Text prooerty, but this is not displaying text.
So, please help me for this.


  • Did anyone find a solution for the text issue as I am still experiencing the same problem?

  • LarryOBrienLarryOBrien USXamarin Team Xamurai

    @SebastienSeidel.9226's answer is correct, as you can see in this screenshot. If you are seeing different behavior, you likely have an issue in your code. Can you explain your problem in more detail?

  • BrandonBooneBrandonBoone USMember ✭✭

    Did anyone find a solution for this problem ?
    I too have this error

  • WonderboyWonderboy ZAMember ✭✭

    The solutions above seem to work only if you ensure that your button Title is set as 'PLAIN' when placing the button. The moment you change it to 'ATTRIBUTED', then the methods don't, work. You would have to use the SetAttributedTitle method.

  • dragoMdragoM CZMember

    @SebastianSeidel.9226 said:

    answer is correct and work for me, many thanks.

Sign In or Register to comment.