The UIActivityViewController class is a standard view controller that you can use to offer various services from your application. The system provides several standard services, such as copying items to the pasteboard, posting content to social media sites, sending items via email or SMS, and more. Apps can also define custom services.

A document interaction controller, along with a delegate object, provides in-app support for managing user interactions with files in the local system. For example, an email program might use this class to allow the user to preview attachments and open them in other apps. Use this class to present an appropriate user interface for previewing, opening, copying, or printing a specified file.

In general if you’re sharing an image or url, you might want to use a UIActivityViewController. If you’re sharing a document, you might want to use a UIDocumentInteractionController.

I previous wrote about how much I liked the Serfas Thunderbolt USB Taillight. Well now I have even more reason to like it. A couple of weeks ago, a plastic piece inside the USB connector broke off. This is the same plastic piece you see on all female mini USB connectors. I think this is bad design on USB’s part, not Serfas. I assume it broke because of the almost daily plugging in to be recharged.

I was about to order a new one, but decided to check out their warranty page: Serfas Warranty I emailed their warranty email address about my problem and got a response within 30 minutes. They said to mail it in and they would fix or replace it.

I mailed it in and about a week later I got a package at my door with a brand new Taillight. This is an awesome product from a company who stands behind their product. I highly recommend it. You can buy the Serfas Thunderbolt on Amazon I’ve already bought one for my kids.

Prior to Xcode 6, all new projects contained a prefix header. In Xcode 6 a prefix header is no longer included in the default project. Instead of using a prefix header you should put your imports in the files that need them. But in the case that you need one, you can still add one.

From the menu, select File > New > File…

Choose iOS > Other > PCH File

In the Build Settings, each for “prefix” to narrow down your choices. Under “Apple LLVM 6.0 – Language” find “Prefix Header”. Add “$(SRCROOT)/PrefixHeader.pch”. Make sure the path is correct. When you close the dialog, it shows the expanded path.