开发者社区 问答 正文

关于解析的时候出现内存的问题

下面的XML解析代码报出内存警告,不知道应该怎么解决,

if  ([elementName isEqualToString:@"page_details"])
    {
        IstructPageDetails *objIstructPageDetails = [[IstructPageDetails alloc] initwithIstructPageDetails:attributeDict];
        [m_objmuteArrOutput addObject:objIstructPageDetails];
        [objIstructPageDetails release];

    }

警告: Incorrect decrement of the reference count of an object that is not owned at this point by the caller

展开
收起
爵霸 2016-03-26 08:10:26 1843 分享 版权
1 条回答
写回答
取消 提交回答
  • initwithIstructPageDetails 应该是initWithIstructPageDetails:helps 因为分析器要根据cocoa的命名规则。

    2019-07-17 19:15:02
    赞同 展开评论
问答分类:
问答地址: