Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 12-26-2009, 09:48 AM   #4 (permalink)
funkytaco
Registered Member
 
Join Date: Jan 2009
Location: Atlanta
Posts: 411
funkytaco is on a distinguished road
Default

In my app using a UIWebView, I'm able to grab the page title: <title>Title Here</title> as Title Here using DOM.

DOM is used in PHP, Javascript, Java, many other languages; not to mention Objective-C.
Document Object Model - Wikipedia, the free encyclopedia

NSString *title = [webView stringByEvaluatingJavaScriptFromString:@"document. title"];
(please note the forum puts a space in document.title ...odd)
Take a look at the following link.

Note that this uses a UIWebview solution:
How To Inject JavaScript Functions Into a UIWebView | iPhone Development Blog

Last edited by funkytaco; 12-26-2009 at 09:56 AM.
funkytaco is offline   Reply With Quote
 

» Advertisements
» Online Users: 673
16 members and 657 guests
ADY, baja_yu, dacapo, djbrooks111, Duncan C, headkaze, iAppDeveloper, JoePitto, KarlJay, msovani, sacha1996, SLIC, smithdale87, smithms, spinyanteater, ukneeq
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,422
Threads: 94,017
Posts: 402,542
Top Poster: BrianSlick (7,978)
Welcome to our newest member, iAppDeveloper
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:57 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.