Creé una grilla de botones. El siguiente código crea los botones y los muestra, pero no hay texto en el botón. ¿Hay algún ajuste que me falta? (Obj-C respuestas están muy bien, soy bilingüe)Título del título de UIButton del iPhone/iPad que no aparece
RectangleF frame = new RectangleF (X + 3, Y + 3, cellWidth - 2, cellHeight - 2);
UIButton button = new UIButton (frame);
button.TitleLabel.Text = "Baha'i";
button.TitleLabel.Font = UIFont.FromName ("Helvetica-Bold", 15);
button.TitleLabel.TextColor = UIColor.Black;
button.TitleLabel.Frame = frame;
button.BackgroundColor = UIColor.FromWhiteAlpha(.5f,.5f);
this.AddSubview (button);
¿Por qué estabas usando letras mayúsculas rápidas para TitleLabel? Es button.titleLabel, no button. ** T ** itleLabel. –
He detallado una explicación aquí http://stackoverflow.com/a/11417134/1149906 –