如何将照片添加到OSX的iPhone模拟器? [英] How do I add photos to the iPhone Simulator for OSX?

查看:146
本文介绍了如何将照片添加到OSX的iPhone模拟器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Mac上有照片,我想添加到iPhone模拟器来测试我的应用程序。

I have photos on my Mac that I would like to add to the iPhone Simulator to test my application.

换句话说:我如何添加照片到iPhone模拟器?

In other words: how do I add photos to the iPhone Simulator?

编辑:iphone模拟器4.0怎么样? iphone Simulator 3.0& 4.0两者的工作方式不同。

Edit : What about iphone Simulator 4.0 ? iphone Simulator 3.0 & 4.0 both working differently.

先谢谢你帮我...

推荐答案

在Mac中打开存储图像的窗口。

Open the Window in mac where your images are stored.

打开另一面的模拟器。

现在将你的图像从mac窗口拖到模拟器,

Now drag your image from mac window to simulator,

模拟器将打开safari,在safari选项卡中将显示你的图像。

simulator will open safari, and in a safari tab your image will be shown.

Tap&在模拟器中按下图像,

Tap & press down on image in simulator,

将显示保存图像的消息,

There will be message to "save image",

保存图像。

它将被添加到您的iPhone模拟器中。

It will be added to your iPhone simulator.

编辑:

首先看一下下面的图片。

First just look at following image.

在iPhone模拟器4.0(iphone / iphone模拟器)中,它本身维护着一个用于添加图像的sqlite数据库。所以,如果你想复制粘贴系统 - 首先制作插入条目&然后复制粘贴。那将是荒谬的。

In iPhone simulator 4.0 ( iphone/iphone simulator ), itself it maintains a sqlite database for added images. So, if you want copy paste system - first make insert entries & then copy paste. That would be ridiculous way.

好的。让我解释更简单的方法。

Ok. Let me explain simpler way of doing it.


  • 打开你想要在模拟器中添加批量图像的查找器。

  • drag&将第一张图片放入iphone模拟器

  • on image - tap&保留1秒。

  • 将显示操作表 - 点击保存选项

  • 对所有图像重复相同的过程

  • 这也会做sqlite条目。

  • 现在,打开/ Users / YourUserName / Library / Application Support / iPhone Simulator / 4.0

  • 备份Media目录。 (例如将其复制并粘贴在桌面上)

  • 当您重置iphone模拟器时,所有图像都将消失

  • 您不需要再次重复所有过程,你已经备份了它。

  • 只需复制&从最高粘贴到4.0

  • open the finder in which you have bulk images that you want to add in simulator.
  • drag & drop first image into iphone simulator
  • on image - tap & hold for 1 second.
  • action sheet will appear - tap on save option
  • repeat same process for all images
  • this will do sqlite entries also.
  • now, open the /Users/YourUserName/Library/Application Support/iPhone Simulator/4.0
  • make a back up of Media directory. ( for example copy it & paste it on desktop )
  • when you reset your iphone simulator, all images will be gone
  • you need not to repeat all the process again, you have back up of it.
  • just copy & paste from back up to 4.0

这篇关于如何将照片添加到OSX的iPhone模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆