开发者

Setting Wallpaper (Background image) in iOS Simulator home screen or lockscreen

I was scratching my brains over something when this popped in my mind. Can we s开发者_运维技巧et the simulator's home-screen background image to an image of our choice? Case in point is Xcode 3.2.2 simulator 3.1.3.


Certain versions of the simulator appear to support this, not just for the home screen but for the lock screen too (which you get to with Command ⌘+L):

  1. Drag an image from your Mac to the simulator.
  2. Mobile Safari opens. Click and hold the image.
  3. Choose Save Image.
  4. Go to Photos.app, and into the photo album.
  5. Choose your image, and set it as the home screen background like you do on a device.
  6. You may need to restart the simulator.

Note that since this isn't exactly officially supported, it may or may not work for you depending on your version of Xcode or the simulator.


It is possible (again) with the iOS Simulator version 6 (for iOS6).

First, add some images to your photo library. You can do this by using Mobile Safari (either surf the web or drag a local image to the simulator). Then perform a long press and save to camera roll.

Second, open "Photos", select the image and set as Background.

Third, restart the simulator (this irritated me at first, as it doesn't seem to work immediately)


How to do this for the Simulator in 11.4.

  1. Drag and drop a photo on the phone.
  2. Go to photo app and view app.
  3. On the bottom bar you should see 3 icons. Hit the icon with the Arrow coming out of the box like you would AirDrop it to someone.
  4. On the Options panel you should see Use as Wallpaper right below the AirPlay option.

Cheers


Hmm. Probably, since you cannot set backgroundimage on your homescreen(exept from the locked view) on on actual iPhone pre iOS4, you cannot do so in the simulator either.


Dragged the image onto the simulator (iOS 9.3) as @boltclock suggests, but nothing happened. However, I then noticed that the images I dragged were showing up in the Photos app on the simulator. From there I just set the wallpapers the same way that you set them on a physical device. Did not need to restart the simulator.


I thought I wasn't able to do this, but then I dragged the bottom row of options to the left and low and behold, there is the "Set as wallpaper" option. :-)


Since this is an old question, I want to confirm this works in Simulator 13.2 for the iPhone 13 Pro Max (I'm running it on on macOS 12.2 Monterey).

  1. In the simulator take Safari to the image you want to set as the background

  2. Right click (or 2-finger press-click on trackpad)

  3. Selected "Add to Photo"s from Pop-up menu

  4. Open Photos app, and click the 'sharing' icon (box with up arrow coming out of it)

  5. Scroll the popup upwards until you see the "Use As Wallpaper" menu item (if you have a Magic Trackpad, you can scroll with a three-finger swipe-up up on the screen)

That's it. You can set the Home and Lock screen that way.

While developing an iOS iPhone app using the simulator, I copied a space scene with just stars for the background and and moved the app icons all to the home screen except left my app icon alone on a different page that way I minimized light and clutter.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜