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

  • 相关阅读:
    jquery 插件扩展2
    jquery 插件扩展
    call apply bind
    bom object
    js oop 封装
    js oop 继承
    js页面之间传参2
    js弹出新窗口的6中方法
    display Tag
    js中extends方法
  • 原文地址:https://www.cnblogs.com/royi123/p/7126143.html
Copyright © 2011-2022 走看看