Tagged: iphone Toggle Comment Threads | Keyboard Shortcuts

  • danielsaidi 9:03 pm on March 13, 2012 Permalink | Reply
    Tags: , iphone, photo library   

    Adding photos to the iPhone simulator 

    I am currently developing an iPhone app that will make use of the camera. Since I am also testing it in the simulator, I want to be able to select pictures from the photo library as well, if the camera is missing.

    However, once I open up the UIImagePickerControllerSourceTypePhotoLibrary in the iPhone simulator, I am presented with the following screen:

     

    No Photos iPhone screen

    No Photos – You can sync photos and videos onto your iPhone using iTunes.

     

    Uhm, can I (sync photos and videos to the simulator using iTunes)? I have not found a way, but there is an easy way to work around this and fill your iPhone with photos.

    Just open up Finder and drag any image you want to add to your simulator. When you see the green plus icon, just release the image and it will open up in Safari, like this:

     

    Safari browser screenshot

    The Safari browser shows the image that was dragged to the simulator.

     

    Now, click the image and keep the mouse button pressed, and you will get the option to save it to the simulator:

     

    Save option

    Press and hold the left mouse button to open the save and copy action sheet

     

    That’s it! If you open up the photo library, you will see the image in your list of saved images:

     

    Photo library

    The photo is added to the photo library

     

    Hope it helps!

     
  • danielsaidi 6:28 pm on January 21, 2011 Permalink | Reply
    Tags: iphone, multitasking, spotify   

    Spotify background playback problem on iOS 

    This is not a development issue, but well worth mentioning to all of you who have problem playing audio when the Spotify app for iOS enters the background.

    It turns out that (for me) this happens when there are to many (many!) active programs. If so, Spotify is not added to the background process an can thus not continue to play.

    Solve this by killing a few apps, then restart Spotify. Background playback should now work again.

     
    • Tero 6:25 pm on May 24, 2011 Permalink | Reply

      Thanks. Got an iPhone a month ago and I didn’t even know that you can kill apps from running in the background. I had a few dozen of them open ie. all the apps I have ever used and this was the first time I encountered any problems. Excellent phone!

    • Anonymous 1:35 am on June 8, 2011 Permalink | Reply

      That’s great!
      Thank you, I didn’t realise that was the problem. I thought that there was something wrong with the app or I had don something wrong. Glad it was such a simple fix 🙂

      • danielsaidi 11:11 pm on June 9, 2011 Permalink | Reply

        Ah, glad to help! 🙂 I was so frustrated before I found out what was causing it.

    • Shaz 10:03 am on June 14, 2011 Permalink | Reply

      Thanks ever so much!!!

    • Maryann 5:50 pm on August 11, 2011 Permalink | Reply

      Hi there,

      I’m having a different Spotify-iPhone problem. Seems to be a common one but still hoping for advice…

      Spotify works great on my Mac laptop. But it refuses to synch to iPhone. I’ve tried everything I’ve read – reinstalling app & application, triple checking wi-fi connections, crazy pushing of buttons…

      Am I just doomed? Is there no hope? I was really hoping to use Spotify on iphone. Any thoughts, links, etc are very appreciated. Big thanks.

    • Jay 6:33 am on March 17, 2012 Permalink | Reply

      Thank you sooo much for this write up! I’m rather embarrassed to admit how many apps were running and it didn’t dawn on me.

    • Joachim Bengtsson 2:32 pm on November 5, 2013 Permalink | Reply

      The problem was actually me not understanding the problem. I talk about the technical solution to the problem here: http://overooped.com/post/46426447128/continuously-playing-music-in-the-background-on-ios

      As a user, you cannot determine if an app is actually running in the background, neither should you have to care. If a problem in an app is fixed by killing background apps, that is a fault in the original app, not something the background apps nor the user has done wrong.

      • danielsaidi 2:43 pm on November 5, 2013 Permalink | Reply

        Good stuff! Is this still a problem? I have not experienced it for a long time, but then again I kill background apps every now and then, since they actually do affect appearance.

        I have noticed that many apps behave strange when I on purpose open up a large amount of memory hungry apps. Infinity Blade II, for instance, creeps to a crawl, displays the menu for a looong time, then eventually shuts down. My own app, that I am currently developing, seems to drop the main storyboard, which makes no segues work.

        I totally agree that the app should handle these kinds of situations, perhaps by notifying the user that memory is low. Then again, when memory and available storage (my iPad 1 got a lot faster after I removed some large apps to free storage) runs low, is there anything the app can do, or does the user have to kill background apps to free memory?

        Are there some good examples around of apps that handle this in a nice way? I will read your blog post after work. Thanks a bunch for posting your comment.

    • will 4:24 pm on May 27, 2015 Permalink | Reply

      This isn’t the problem, at least not for me.

c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel