Setting Background image in simulator home-screen

后端 未结 6 2176
你的背包
你的背包 2021-02-18 13:09

I was scratching my brains over something when this popped in my mind. Can we set the simulator\'s home-screen background image to an image of our choice? Case in point is Xcode

相关标签:
6条回答
  • 2021-02-18 13:20

    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.

    0 讨论(0)
  • 2021-02-18 13:21

    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.

    0 讨论(0)
  • 2021-02-18 13:22

    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)

    0 讨论(0)
  • 2021-02-18 13:30

    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

    0 讨论(0)
  • 2021-02-18 13:31

    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. :-)

    0 讨论(0)
  • 2021-02-18 13:34

    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.

    0 讨论(0)
提交回复
热议问题