为什么我的UIImage不会显示在ViewDidLoad()以外的例程中?

时间:2014-03-21 04:13:53

标签: iphone objective-c ios7 uiimageview uiimage

我正在运行XCOde 5,ios7。 我在故事板中创建了一个UIImage。 如果我使用以下方法设置.image属性: self.image43.image = [UIImage imageNamed:self.string4];

ViewDidLoad()中,工作精细!

但是,如果在我的游戏程序中执行完全相同的代码(例程设置为我的计时器选择器,如下所示),它不会显示

self.myTImer = [NSTimer scheduledTimerWithTimeInterval:1.0/30.0 target:self selector @selector(gameplay:) userInfo:nil repeats:YES

我太离谱了.......)

感谢 -Ed

0 个答案:

没有答案