Disabling ‘hold to copy’ on Mobile Safari

If you want to disable the ‘Cut / Copy / Paste’ invoked by holding down on an element in Safari on the iPhone or iPad use the css:

-webkit-user-select: none;

However, as stressed by Apple, this should only be disabled on a per element basis, and never applied to the whole document.

Apple’s Technical Note TN2262: Preparing Your Web Content for iPad covers this along with using web standards instead of plugins (something that really interests me at the moment).

Debugging on iPhone Requires App Deletion

Problem

When running & debugging an application on an iPhone / iPod using Xcode you get the error:

“A signed resource has been added, modified, or deleted.”

With the application not being able to be redeployed until it is deleted from the device.

Fix

Simply turn off Passcode Lock on the device.

Update: This might just be an issue in the pre-release iPhone 3.2 SDK.

Update 2: If this doesn’t work try:

  1. Xcode > Build > ‘Clean’ and then ‘Clean All Targets’
  2. Xcode > Build > ‘Build and Go’