1

I have a main project. Then i want to have another project where i have only the images. This is because i have a tool that builds for me this project.

So the main project has the lohic, and the Data Project has the images.

Well, i can load images with UIImage.FromFile. But only is this images ARE in the main project.

When i take a look to the app generated, i can see that , even if i change the file properties to Content, and Copy always, no image files appear at all. It seems that they are embedded as a resource.

This is not what i want at all. I want to copy a bunch of files to the iPhone, and the load it using UIImage.FromFile.

4

1 回答 1

0

尝试这个:

首先,在您的图像项目中将所有数据设置为resources。它们将嵌入到生产的组件中。

接下来,从您的主项目中,用于UIImage.FromResource创建图像。指定程序集(由您的图像项目创建)和图像文件的名称。

于 2012-04-15T16:14:05.683 回答