If there are many interactive methods, it is annoying to add them one by one and have to remove them one by one. Is there any way to solve it with a small amount of code?
When adding an interaction, you need to operate 3 places 1. Write method to implement 2 .Add ScriptMessageHandler 3.Removing it in dealloc is really annoying
I now put those method names into the array, traverse the array to add and remove. Now I need to do two operations: 1. Write the method to implement 2. Throw a method name into the array
I also thought about using runtime to get the method name, but how to identify whether it is a method for js interaction??
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...