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

これを試して:

まず、画像プロジェクトですべてのデータをリソースとして設定します。それらは、作成されたアセンブリに埋め込まれます。

次に、メインプロジェクトから、を使用UIImage.FromResourceして画像を作成します。(イメージプロジェクトが作成する)アセンブリとイメージファイルの名前を指定します。

于 2012-04-15T16:14:05.683 に答える