プログラムでイメージビューを作成し、その中にpngファイルを入力しました。シミュレーターでアプリを実行したり、Ipad でデバッグしたりすると、すべて問題ありません。アプリをアーカイブし、アドホック展開 ipa として配布しました。ipa ファイルを iPad にインストールすると、イメージビューが消えます。誰が私を助けてくれますか? 背景画像として使用するのは問題ないので、pngファイルは問題ありません。
以下のようなソースコード
UIImageView *uiImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20, 20, 20, 20)];
UIImage *image = [UIImage imageNamed:@"first.png"];
uiImageView.image = image;
もこのようにしました
UIImage *img = [UIImage imageNamed:@"first.png"];
UIImageView * uiImageView = [[UIImageView alloc] initWithImage:img];
uiImageView.bounds = CGRectMake(20, 20, 20, 20);
CGRect frameimage = uiImageView.frame;
frameimage.origin.x = ..;
frameimage.origin.y = ..;
uiImageView.frame = frameimage;