Old News, Probably: Emailing multiple photos on iPhone (updated for iOS 5)

As usual, I’m the second-to-last person to find out how to do this stuff. 

I just happened to want to send multiple photos and couldn’t figure out how – but the forum post below shows that you do it from the other end – via the Camera Roll. Then it becomes clearer…

Oh, and I edited the list of steps for iOS 5.

Is it possible to email multiple pictures? – MacRumors Forums

  1. Go to your Camera roll.
  2. Select the roll you want.
  3. Tap Share icon (on iOS 5 – top right)
  4. Select multiple photos by tapping each one you want to send via e-mail (you should get a red check mark in each photo; the “Photos Selected” count in the title will increase as the number of photos selected increases).
  5. Tap the “Share” button in the bottom left.
  6. You will have the option to share them via Email, Message, or Print.


#iOSDev Tip: Unblock events caused when adding subviews to your UIButtons

Recently, I was having an issue I was having with subviews added to my UIButton objects that I was customizing. The buttons would behave fine if they were standard rounded rect buttons, but the moment I added a UIView and some UILabels to it, the taps stopped responding.

But I was able to resolve it, thanks to the tip provided here:

iPhone: Subviews in UIButtons block the touch, unless…

The solution boils down to something very simple and it makes sense when you think about it, but at first it seems strange:

  • All you need to do is set userInteractionEnabled and exclusiveTouch to NO on the items that you want to add as subviews to your UIButton (and don’t set those properties to NO for the UIButton itself).

Once you turn off user interaction and exclusive touch properties on the subviews, your events will be sent to the underlying button (or at least that’s how I like to think of it happening…).

I initially read the post wrong and set them to YES and couldn’t figure out why it wasn’t working. Then I went back and looked at the comments, which pointed out where I went wrong.

Hope this helps!


What is the Future of iOS Notification?

One of the more annoying things about iOS is its notification system. Modal alerts are so arcane, intrusive and annoying, I am actually shocked that they are still the standard method of notification in iOS as of version 4…

Looks like there are some underground movements (requiring jailbreaking, of course) to change that. Here’s a little commentary by Sebastiaan de With (@cocoia) that I found interesting:

Cocoia Blog » Getting Notified:

There’s some discussion on Apple-centric and tech news websites about a video that’s doing the rounds with a new approach to notifications for iOS. While the system in the video is really nothing new (there’s been at least one alternative notification system in the App-Store-for-jailbroken-phones “Cydia” since 2010) it is getting a lot of attention, presumably because iOS users are quite satisfied with almost all the interactions of the OS except those dang stacking modal dialogs that interrupt your game of Angry Birds every time you get a text message.

So while I am not a jailbreaker (and never will be), my hope is that Apple and its designers and developers on the iOS team will take notice of this and do something about it in a future version of iOS.

We shall see…

iOS Simulator QuickTip: Removing all installed applications.

It was time to clean house a bit, so I wanted to remove all the currently installed applications in the iPhone Simulator. Turns out there’s a very simple way to do it…

1. With the iPhone Simulator running, click on the iOS Simulator application menu.

2. Click “Reset Contents and Settings…”.

– A confirmation dialog will appear warning that “all installed applications, content, and settings will be moved to the trash.”

3. Click “Reset.”

All the applications will be removed and you can proceed with a clean slate.

Open Source App List on ManiacDev

I found this list recently and thought it might be helpful to keep around for reference. Having open source applications available means that you can learn quite a bit from the successes of others by looking at the source and seeing how they accomplished their tasks.

Open Source iPhone Apps List – 43 App Store Apps So Far! | iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips:

It can be tough to learn how to develop, especially when it comes to finding complete examples. That’s why I put this list together. Each of these open source iPhone apps is not just open source, but has been in the app store, and all but one are in there right now. So if you’re looking for an example of some real apps here they are.

NSOperation Xcode File Template

From Jeff LaMarche’s iPhone Development site:

iPhone Development: NSOperation Xcode File Template:

NSOperation Xcode File Template Although I’m generally averse to using a lot of template or boilerplate code, there are times when it’s handy to have file template beyond those that Apple provides. Something I’ve done a fair amount of lately is to create NSOperation subclasses, and there’s enough work involved with setting up an operation that I made an Xcode file template that contains all that setup work.

This template includes a delegate and a protocol and some private methods for communicating with the delegate. Now, when I have lots of NSOperation subclasses in a single project, I’ll actually move much of this stuff to an abstract parent class or a category on NSOperation, but templates don’t have any way of setting up dependencies, so I’ve made this self-contained and you can do your own refactoring.