Entries tagged with objective-c

Apply UIAppearance immediately on the screen

I was looking for how to apply changes made with UIAppearance’s proxy method immediately.

I found a solution in a library UISS, that handles Stylesheets written with JSON format.

Read On 

Generating Objective-C Literals from JSON

The modern syntaxes for NSDictionary, NSArray, NSNumber are supported from Xcode 4.4. To use this easily for testing, I customized JSON#stringify method ported from JSON2.js.

With node.js, the script can convert JSON from STDIN.

$ node Dictionary.js < test.js
# with cURL
$ curl 'http://itunes.apple.com/search?term=Path&entity=software' | node Dictionary.js

Also in browser, this works with stripping lines under if(process) scope.

Dictionary.stringify({ a:1, b:"Hello", c:[1,2,3] }, null, "