Could not load the image referenced from a nib in the bundle running on device

后端 未结 30 2084
挽巷
挽巷 2020-12-07 18:24

SplitView[1290:307] Could not load the \"canary04.png\" image referenced from a nib in the bundle with identifier \"xx.co.mycompany.ipad.SplitView\"

30条回答
  •  萌比男神i
    2020-12-07 19:08

    I had a different problem in iOS 8. In my case the problem was that I selected Device Specific for the image set, and then selected iPad. Changing this back to Universal fixed the problem.

    This setting can be found in the images.xcassets file, in the third column show the attributes inspector for the image set.

    In this case the images wont be displayed in the storyboard or NIB file even if you have added them to images.xcassets. They also wont show in the simulator or device.

提交回复
热议问题