ShareKit method swizzling in Lion / Xcode 4.3.1?
I recently upgraded to Lion and Xcode 4.3.1 with the iOS 5 SDK, and the sharing library ShareKit is broken - it used method swizzling for its email handler. Apparently Apple has banned or at least attempted to phase out method swizzling. ShareKit imports a file </usr/include/objc/objc-class.h> , which no longer exists, and defines its own method swizzling method SHKSwizzle . It uses this to alter MFMailComposeViewController 's viewDidDisappear: method as follows: SHKSwizzle([MFMailComposeViewController class], @selector(viewDidDisappear:), @selector(SHKviewDidDisappear:)); What do you think is