when updating label text a few images reset to their storyboard init size

南楼画角 提交于 2019-12-08 09:46:08

问题


I'm working on a game with score (UILabel) and a few moving UIImages.

From the day I installed XCode 6, every time I update the score all the images in the view go back to their first frame (the frame from the storyboard).

I tried to update the score like this:

label.text = @"4";
[label setText : @"4"];

but it still happens

I think that if I will create this score label programmatically it might help, but I wanna know if some of you know about this bug and maybe you have some other solution?

来源:https://stackoverflow.com/questions/26399688/when-updating-label-text-a-few-images-reset-to-their-storyboard-init-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!