Closed hmelder closed 21 hours ago
If +alloc was overwritten, it is not guaranteed that it returns an instance of cls. For example, a class cluster like NSString might return an instance of a subclass instead. Retrieve the class of the instance returned by objc_alloc instead.
If +alloc was overwritten, it is not guaranteed that it returns an instance of cls. For example, a class cluster like NSString might return an instance of a subclass instead. Retrieve the class of the instance returned by objc_alloc instead.