I am developing an iOS infrastructure that includes image resources, I call the methods below in the framework,
crossImage = [UIImage imageNamed:@"cross"]; arrowImage = [UIImage imageNamed:@"arrow"];
and then I create a demo to test my frameworks, but find crossImage and arrowImage are zero; Subsequently, I compute the imageNamed: method imageNamed: will search for images in the application directory, and not in the framework, so I can fix this by adding two images to the demo project. However, he is barely elegant. why any other image targeting solutions in my framework?
source share