我在利用故事波德故事片进行我的“i”项目。 在故事板上,我有一位感化控制员,使用原型电池进行表观测。 在原型电池中,我有一个UIButton(环形环形)被ook上UIButton子级。 该表从一个阵列中获取数据,数据在“ForRowAtIndexPath”中印刷。
Inside cellForRowAtIndexPath, I conditionally modify the cell s appearance. This is when I start getting problems. I am able to successfully change the text of the button. However, if I attempt to change the image of the button, using:
[cell.myButton setImage:[UIImage imageNamed:@"mynewimage.png"] forState:UIControlStateNormal];
形象发生了变化,但案文消失。
如果我试图改变纽芬兰语的案文,使用:
[cell.myButton setTitleColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:.77] forState:UIControlStateNormal]
任何事情都不发生。 肤色保持不变(除非我也试图改变形象,在这种情况下,它完全消失)。
I am sensing I am doing something fundamentally wrong here -- do you have any suggestions?