CUICatalog: Invalid asset name supplied warning
It may happen when try to load unknown image. Please check a correct image name is passed for imageName
[UIImage imageNamed:imageName]
UIRefreshControl warns: CUICatalog: Invalid asset name or invalid scale factor
So basically this had nothing to do with the refreshcontrol but with the image name used while init'ing the image.
I used to do this:
[UIImage imageNamed:[someDictionary objectForKey:@"imageKey"]];
But what I really needed to do is this:
[UIImage imageNamed:[NSString stringWithFormat:@"%@",[someDictionary objectForKey:@"imageKey"]]];
So by turning it into an NSString, the error isn't produced anymore. Sure you need to have a @2x paired image, but even if you have those, without NSString'ing the name, you'll still get this error.
Related Topics
How to Directly Rotate Cvimagebuffer Image in iOS 4 Without Converting to Uiimage
Using Cabasicanimation to Rotate a Uiimageview More Than Once
Changing View Controller When Segmented Control Changes
How to Properly Order Data from Firebase Chronologically
Bounding Box from Vndetectrectanglerequest Is Not Correct Size When Used as Child Vc
Playing Back Audio Using Avaudioplayer iOS 7
Why Is This Code Not Recognising the Nsstring as Being Equal
Xcode UI Testing Error Keyboard
Xcode Cannot Run on the Selected Destination
Uitableviewcell Set Selected Initially
How to Remove Special Characters from String in Swift 2
@Property/@Synthesize Equivalent in Swift
Uislider That Snaps to a Fixed Number of Steps (Like Text Size in the iOS 7 Settings App)
Are Headphones Plugged In? iOS7
iOS Nested View Controllers View Inside Uiviewcontroller's View