Hey, 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 x-code 3.2.2 simulator 3.1.3.
A:
Undeleted this answer to account for anyone who might be searching for this question but for iPhone Simulator with iOS 4. The following method does work for me and I've been doing this since downloading SDK 4.
Yep, not just the home screen but the lock screen too (which you get to with Command ⌘+L):
- Drag an image from your Mac to the simulator.
- Mobile Safari opens. Click and hold the image.
- Choose Save Image.
- Go to Photos.app, and into the photo album.
- Choose your image, and set it as the home screen background like you do on a device.
BoltClock
2010-09-02 08:59:11
hey BoltClock, tried it already. Couldn't meet success
Bogus Boy
2010-09-02 09:00:16
@Bogus Boy: what happens when you try that? Which step do you have trouble at? It works perfectly for me.
BoltClock
2010-09-02 09:01:04
@Bogus Boy: You should be accepting Gubb's answer since your question asks specifically about iOS 3.1.3, or edit your question to say SDK 4/iOS 4.
BoltClock
2010-09-02 11:47:26
Hey, Grubb told me that home-screen background is changeable only in ios4 and above. I could do it for the simulator 4.0. So, problem solved. But have a look at the textview+Nsstring thing.
Bogus Boy
2010-09-02 11:50:13
Yes, I accepted his answer. I got to learn many a things about this forum today. Thanks!!! Bolt/Gubb
Bogus Boy
2010-09-02 12:11:49
Bolt if you could please look at the UITextView + NSSString issue. I have edited the original question and inserted an image as well to make communication easier.http://stackoverflow.com/questions/3574618/capturing-uitextview-data-in-an-nsstring
Bogus Boy
2010-09-02 12:14:57
+1
A:
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.
Gubb
2010-09-02 09:01:18
Oops, I misread the question. This is the correct answer as OP's sim is at version 3.1.3.
BoltClock
2010-09-02 09:02:19
Hey, I tried it on X-code 3.2.3 and simulator simulator 4.0 also. by default this simulator has "waterdrops" image as background. It's not working here as well.Can anyone of you tell me why?
Bogus Boy
2010-09-02 09:18:56
When you get an answer to your question that you are satisfied with you can(and should) click the check-sign to the left of the answer. This tells everyone that the question is answered and it gives the answerer credit(reputation) for answering. Read the FAQ for more information. :)
Gubb
2010-09-02 09:19:05
If you're running the simulator with iOS4 it should be possible. Do as BogusBoy said:1. drag image to simulator(it opens in safari).2. hold-click the image and select "save image".3. got photos on home-screen.4. select the image and set it as home-screenimage.
Gubb
2010-09-02 09:25:28
Yes Mr.Gubb it works just fine. Could you also tell me, what's the difference between home screen and lock screen? And this background feature is available from what simulator onwards?
Bogus Boy
2010-09-02 09:30:44
And also tell me how could I retrieve the default "waterdrops" background?
Bogus Boy
2010-09-02 09:34:14
voila, I just cracked this one. just delete the images from simulator\4.0..\library\springboard\ and you are good.
Bogus Boy
2010-09-02 09:37:41
The homescreen is the iPhones unlocked state, where you see all your app-icons. The lockscreen is when you phone is locked. This feature is enabled from iOS4. Um, you could always reset the simulator to get the default back:In the top-menu: Goto the "iPhone simulator"-tab and chose "Reset Content and Settings.."
Gubb
2010-09-02 09:40:43
Thank you Mr.Gubb. This is the first resolution I have had so far on this forum. You could understand why had such poor accept rate. Now that you have come to my rescue, I have a few other issues that need redressal. Can you also have a look at one of them herehttp://stackoverflow.com/questions/3574618/capturing-uitextview-data-in-an-nsstring
Bogus Boy
2010-09-02 09:55:31