logo
  • Entries
  • Comment
  • Popular
Recent Posts
  • iPhone SDK Tip: Firing custom events when a link is clicked in a UIWebView
  • iPhone SDK Tip: Function for getting formatted date string as NSString
  • Project source files now available for download!
  • Loading Local Files into UIWebView
Recent Comments
  • Bob Schoenburg in iPhone SDK Tutorial: Reading data f…
  • mek in iPhone SDK Tutorial: Reading data f…
  • Dean in iPhone SDK Tutorial: Reading data f…
  • mek in iPhone SDK Tutorial: Reading data f…
Popular Articles
  • iPhone SDK Tutorial: Reading data from a SQLite Database (28)
  • iPhone SDK Tutorial: Building an Advanced RSS reader using TouchXML (Part 1) (23)
  • iPhone SDK Tutorial: Build your very own Web Browser! (15)
  • Loading Local Files into UIWebView (3)
  • Home
  • About
Oct 2
iPhone SDK Tip: Firing custom events when a link is clicked in a UIWebView
icon1 Posted by Dean in iPhone Development, iphone SDK tips, xcode on 10 2nd, 2008 | 2 Comments
iPhone SDK Tip: Firing custom events when a link is clicked in a UIWebView

Bookmark this article! [?]

BlinkbitsBlinkListsBlogLinesBlogmarksBuddymarksCiteULikeCo.mmentsDel.icio.usDiggDiigo

FarkFeed Me LinksFurlGoogleLinkagogoma.gnoliaMister WongNewsvinePropellerRawsugar

RedditRojoSimpySphinnSpurlSquidooStumbleUponTailrankTechnoratiYahoo

Well I have been asked this a few times and I can see how it would be a very helpful addition to the UIWebView’s feature set. What I am talking about is adding the ability to intercept the event generated when a user selects a link in a webpage being displayed with a UIWebView, this will then allow you to perform any action that you want. When would you use this I hear you say? Well one person asked me if I knew how to append the users current location onto all HTTP requests? and another just wanted to know how to perform custom actions from an embedded... 

Sep 30
iPhone SDK Tip: Function for getting formatted date string as NSString
icon1 Posted by Dean in iPhone Development, iphone SDK tips, xcode on 09 30th, 2008 | No Comments
iPhone SDK Tip: Function for getting formatted date string as NSString

Bookmark this article! [?]

BlinkbitsBlinkListsBlogLinesBlogmarksBuddymarksCiteULikeCo.mmentsDel.icio.usDiggDiigo

FarkFeed Me LinksFurlGoogleLinkagogoma.gnoliaMister WongNewsvinePropellerRawsugar

RedditRojoSimpySphinnSpurlSquidooStumbleUponTailrankTechnoratiYahoo

Well I needed a way to get a formatted date string in NSString format so I dug around and came up with the following function. -(NSString *) dateInFormat:(NSString*) stringFormat { char buffer[80]; const char *format = [stringFormat UTF8String]; time_t rawtime; struct tm * timeinfo; time(&rawtime); timeinfo = localtime(&rawtime); strftime(buffer, 80, format, timeinfo); return [NSString stringWithCString:buffer encoding:NSUTF8StringEncoding]; } What it does it it takes a NSString as input with set specifications (checkout http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/strftime.3.html... 

Sep 30
Project source files now available for download!
icon1 Posted by Dean in iPhone Development, iPhone Development Tutorials, xcode on 09 30th, 2008 | No Comments
Project source files now available for download!

Bookmark this article! [?]

BlinkbitsBlinkListsBlogLinesBlogmarksBuddymarksCiteULikeCo.mmentsDel.icio.usDiggDiigo

FarkFeed Me LinksFurlGoogleLinkagogoma.gnoliaMister WongNewsvinePropellerRawsugar

RedditRojoSimpySphinnSpurlSquidooStumbleUponTailrankTechnoratiYahoo

Just letting everyone know that the source files for the first three tutorials are now available at the bottom of each tutorial. There has also been some minor updates to some of the tutorials to make them easier to understand. Keep your eyes out for more tips and tutorials coming soon! Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.  Read More →

Sep 29
Loading Local Files into UIWebView
icon1 Posted by Dean in iPhone Development, xcode on 09 29th, 2008 | 3 Comments
Loading Local Files into UIWebView

Bookmark this article! [?]

BlinkbitsBlinkListsBlogLinesBlogmarksBuddymarksCiteULikeCo.mmentsDel.icio.usDiggDiigo

FarkFeed Me LinksFurlGoogleLinkagogoma.gnoliaMister WongNewsvinePropellerRawsugar

RedditRojoSimpySphinnSpurlSquidooStumbleUponTailrankTechnoratiYahoo

I thought i would make this a separate post to the Build your very own Web Browser! tutorial as it can be used for many different purposes and it took me a bit to figure it out. For my example I am going to be trying to use a file in my local bundle in a UIWebView, my file is going to be called “sample.jpg” and it will be in the root folder of my project, this will work for any folder though. I will show you the code and then I will explain it. NSString *imagePath = [[NSBundle mainBundle] resourcePath]; imagePath = [imagePath stringByReplacingOccurrencesOfString:@"/"... 

Sep 21
iPhone SDK Tutorial: Reading data from a SQLite Database
icon1 Posted by Dean in iPhone Development Tutorials, xcode on 09 21st, 2008 | 28 Comments
iPhone SDK Tutorial: Reading data from a SQLite Database

Bookmark this article! [?]

BlinkbitsBlinkListsBlogLinesBlogmarksBuddymarksCiteULikeCo.mmentsDel.icio.usDiggDiigo

FarkFeed Me LinksFurlGoogleLinkagogoma.gnoliaMister WongNewsvinePropellerRawsugar

RedditRojoSimpySphinn