iphone - iOS SDK 4.0 & 4.1 add images to simulator -


I have asked many questions how to add images to the simulator and see two answers:

  • Click and hold to save to mobile safari on the phone
  • Add files to the 100 Apel (or whatever) folder

Both worked great in everything Before iOS SDK 4.0, they do not work for me anymore, nor for anyone else that I have seen. I have tried to write an image in the photo library which I have found manually using the code given below:

  - (zero) image: (UIImage *) image done by FinishSavingWithError: (NSError *) Error ContextInfo: (Zero *) ReferenceInfo {UIAlertView * Warning; If (error) // Unable to save image warning = [[UIAlertView alloc] initWithTitle: @ "error" message: @ "Unable to save image to photo album." Representative: Self cancel buttonTitle: @ "OK" other button titles: zero]; Else // All is well warned [[UIAlertView alloc] initWithTitle: @ "Success" Message: @ "Photo saved in Photo Album." Representative: Self cancel buttonTitle: @ "OK" other button titles: zero]; [Alerts show]; [Warning issued]; }  

But every time the errors are there, is there a problem with the write accessibility of this simulator? Or just a few bugs? I have decided that the iOS 4.1 SDK has already been updated, but it is not decided.

I am using encod 3.2.4 with SDK 3.2, 4.0.1 and 4.1. The following steps work for me: 1. Launch Simulator 2. For the simulator, drag an image from Finder which will always launch the Safari to show the image 3. Click for a few seconds and click, then you will see a popup An "Save Image" button


Comments