This is not possible as Objective-C works. The best thing you can do is not to publish these methods by declaring them in an internal header (either in a continuation of a class or in a category) that you do not provide to the library user. Using tools such as classdump or runtime APIs, these methods can still be found and called.
source
share