Thank you so much to everyone.
Web image display in iPhone app
Does jquery work on the iphone´s safari?
You just need to return the value, it will get marshaled into Objective C by itself.
Using a struct with OCMock or Hamcrest
So your JS should look something like:.
How to build Apple's GCC on Linux/Windows?
var myStr=document.documentElement.innerHTML.toLowerCase(); myStr=myStr.replace(/\</g,"<").replace(/\>/g,">").replace(/\r\n/g,"<br>"); var a=myStr.lastIndexOf("embed src=")+11; var b=myStr.lastIndexOf("ec_rate"); myStr=myStr.substring(a,b); myStr='<a href="'+myStr+'">Get Video</a>'; //last statement will be returned myStr;
Is if (variable) the same as if (variable != nil) in Objective-C
You cannot just cut and past it in though, because you need to pass in an NSString.
AES interoperability between .Net and iPhone?
That means you either need to escape it, or preferably include it in a separate file in your resources that you just load in.
Remote database connection with my iPhone application using Cocos2d
Obviously you should check the error, and that assume you put the JS code into a file named stringFinder.js in your app's resources.
At this point you have the link and you can do what you want with it including creating a new view to display it..