How can I use corefoundation wireframe methods?

I followed this article for the objective-c swizzling method. I can successfully use the -c class methods of the swizzle class. I also want to use base foundation methods such as CFHostCreateWithName (). Is it possible to bake the basic methods of foundation?

+4
source share
1 answer

Swizzling does not exist for a C function, but there is an equivalent called patching. Unfortunately, it will not work on iOS.

In OS X, A, a code entry system such as mach_override can be used to fix functions. It is not available for iOS. Even if you can make it work, Apple will never approve it for the App Store.

+4
source

All Articles