Object Send Autorelease Many Times

  Sometimes you find that there is a strange stituation about xcode giving message "object send -autorelease many times".

  1. Usually, you may seed autorelease to object many times. 

  2. There is also a stituation an object' initial method is not named according to apple initial method name specification.

      Object-c have strict name rules about initial method.

      Such As:

  IVVideoBase *videoBase = [[[IVVideoBase alloc] initwithDictionary:self] autorelease];

  In this stituation, XCode will give a tip "object send -autorelease many times". But, you actually do not send "autorelease message" many times

  to the object videoBase.

  To resolve this problem, you need change the initial method initwithDictionary to initWithDictionary, which means to change "w" to "W".

原文地址:https://www.cnblogs.com/JiesonWu/p/2618676.html