0

PaperStack Alpha Source Code

-

Hello, after iOS 5 release (introducing PageViewController and Book Applications) PaperStack team decided to convert the "Books" project in something more interesting and portable.

Anyway, we decided to release our alpha source code to reveal the geometry and math behind the Page Curl filter to everyone. Hope this helps!

0

Open Source: Library For Easily Communicating With Objective-C Code From A UIWebView

-

 

I’ve mentioned in the past instances when you may want to use a UIWebView for tasks such as rendering .SVG files, but there could likely be instances when you want to go the other way. I see questions on how to do this popping up time and time again.

Communicating with the webview itself is easy as you can execute Javascript code using the UIWebView stringByEvaluatingJavaScriptFromString but going the other way things can get a bit hacky.

I’ve come across a very easy to use Javascript and Objective-C  library that allows for two way communication with a UIWebView with just a few lines of code.

The library is from Marcus Westin and can be found with full documentation, and an easy to understand example here:

https://github.com/marcuswestin/WebViewJavascriptBridge

If you ever find yourself struggling to get some Javascript running in a UIWebView to communicate with your Objective-C code you can use this library which makes things a snap, and of course since it’s open source you can take a look at how things are done.

Open Source: Library For Easily Communicating With Objective-C Code From A UIWebView | iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips.