Works on iPhone Simulator but not on device

后端 未结 3 474
自闭症患者
自闭症患者 2020-12-19 07:40

Here I addsubviews (UIImageViews) it all works on the simulator but not on the device (iOS 4.1) wtf!?

- (void)addChips:(int)value {
UIImage *chipImage;
switc         


        
3条回答
  •  情深已故
    2020-12-19 08:11

    You are going to use your image, names only. Not with image extension. You should use the full image name as

    [UIImage imageNamed:@"a.png"];
    

    Make sure image name is the be same as you stored it in the resource folder.

提交回复
热议问题