Disabling highlight on touch in iOS mobile safari web apps

Technical, Android, iPhone, 104 words  

When building web apps for mobile devices such as mobile Safari on iOS and the web browser on Android devices. When implementing web apps, by default any touch events causes a tint sort of highlight on any anchor elements or DOM elements with click events. On Android particularly HTC sense, it creates a green border.

To disable this, you use the webkit CSS attribute -webkit-tap-highlight-color

This overrides the highlight color shown when the user taps a link or a JavaScript clickable element.

Syntax

-webkit-tap-highlight-color: rgba(0,0,0,0);

Note, you’ll need to set the above colour with alpha channel as 0 in order to disable the touch highlight

Default iPhone app icons for iPhone Simulator

Technical, iPhone, 167 words  

iPhone CalendariPhone ipodiPhone messagesiPhone Weather

Do you like doing screen captures or screen casts for the iPhone via the iPhone Simulator? If you do, you will notice that the iPhone Simulator provides a limited set of app icons on the screen, which may make a screen capture or screen cast recording boring. So here’s a solution I came up with to easily add the icons in. Simply visit the following links via Mobile Safari and add any of the corresponding pages to your home screen to fill up your iPhone home screen with “fake” icons.

Read more »

FIX for "This accessory is not optimized for this iphone"

Technical, iPhone, 211 words  
FIX for "This accessory is not optimized for this iphone"

Recently with an upgrade to iOS 4.1 (or maybe a coincidence), my lady’s iPhone keeps popping up with

“This accessory is not optimized for this iphone”

After much Googling, I ended up having to troll through Apple’s forum before coming across this thread which had the solution to my problem. I’ve listed the possible fixes to save you the trouble of scrolling through Apple’s forum.

Read more »

::

April 2024
Mon Tue Wed Thu Fri Sat Sun
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
 << <   > >>
Brinley Ang

Brinley Ang is a software engineer, sysadmin, coder, geek boy, jedi knight fragger, caffine addict, deaf meloncholic and rockstar wannabe. Listens to the sex pistols and a wide assortment of heavy metal.

Make payments with PayPal - it's fast, free and secure!
Search
home | portfolio | blog | links | contact
© 2024 - Brinley Ang
Valid xhtml