zoukankan      html  css  js  c++  java
  • not available in automatic reference counting mode

    UncaughtExceptionHandler.m:156:47: 'autorelease' is unavailable: not available in automatic reference counting mode

    ARC forbids explicit message send of 'autorelease'

    [[[[UncaughtExceptionHandler alloc] init] autorelease]

         performSelectorOnMainThread:@selector(handleException:)

         withObject:

         [NSException

          exceptionWithName:UncaughtExceptionHandlerSignalExceptionName

          reason:

          [NSString stringWithFormat:

           NSLocalizedString(@"Signal %d was raised.", nil),

           signal]

          userInfo:

          [NSDictionary

           dictionaryWithObject:[NSNumber numberWithInt:signal]

           forKey:UncaughtExceptionHandlerSignalKey]]

         waitUntilDone:YES];

    解决方法:

    http://blog.csdn.net/xbl1986/article/details/7216668

  • 相关阅读:
    第03组 Alpha冲刺(3/4)
    第03组 Alpha冲刺(2/4)
    第03组 Alpha冲刺(1/4)
    课程总结
    第十四周学习总结&实验报告
    第十三周课程总结
    第十二周学习总结
    第十一周课程总结
    第十周课程总结
    第九周课程总结&实验报告(七)
  • 原文地址:https://www.cnblogs.com/royi123/p/7126143.html
Copyright © 2011-2022 走看看