JSPatch -- iOS hotfix

wiki: https://github.com/bang590/JSPatch/wiki

 

1. Block

block( 'int, MyClass *', function( paramA, paramB) {    //do something } );

// double is not supported, number of parameters must not greatter than 6.

 

2. dispatch_after() dispatch_async_main() dispatch_sync_main() dispatch_async_global_queue()

e.g.

dispatch_async_main( function() {  //do something } );

posted on 2016-04-28 02:07  alex_wood  阅读(132)  评论(0编辑  收藏  举报