It's not built-in the API, so this piece of code will do. It makes your search bar display in black, and with transparency... enjoy! :)
Thursday, February 4, 2010
Tuesday, February 2, 2010
In an iPhone application I'm developing, there are some views that are quite complex to code... and I find them much easier to code in HTML/CSS. Since the Webkit engine available on the iPhone is quite powerful, I find it a much easier way to create complex views...
Now if you want this view to interact with your application it is a bit tricky... but not THAT much. Here is a piece of code I have in my controller... well in my UIWebViewDelegate.
Basically we catch the click on a link, and if the link is of the form
file://...#action we then look for the selector
action in the controller and trigger it if it exists.
It's THAT simple. :)