Are you using JQuery? Sure you are! Who isn't, right? Put this in a file called jquery.browser.mobile.js and then reference it.
(function (a) {
jQuery.browser.iDevice = /ip(hone|od|ad)/i.test(a);
})(navigator.userAgent || navigator.vendor || window.opera);
This will allow you to check for specific instances that you are on an Apple product.
if ($.browser.iDevice) {
// do something exciting
}
The reason you'd want to do something like this, is because Apple products fire touch events and not click events. So you might want to hook up handlers to elements differently on Apple products.