TomSwift / UIWebView-TS_JavaScriptContext

A method for obtaining UIWebView's internal JSContext without using KVC
417 stars 76 forks source link

retain cycle #3

Open SSiming opened 8 years ago

SSiming commented 8 years ago

Thanks for sharing this。

xuyouyang commented 8 years ago

Yes, it may call retain cycle.
But I don't know why should write "ctx[@"viewController"] = self; " ?

dream4java commented 6 years ago

you can use other class , ctx[@"viewController"] = [[otherClass alloc] init],then you can fix it