Sunday 30 March 2014

'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode

'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode

 'release' is unavailable: not available in automatic reference counting mode

ARC forbids explicit message send of 'release'

These all above 3 errors can occurs while using "NSAutoreleasePool" with "ARC" on

    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];  
    NSLog (@"hello, this old way of using autorelease pool!!");
    [pool drain];
    return 0;

Change above code to below code

    @autoreleasepool {
    NSLog (@"hello, this is new way of using autorelease pool with arc!!");
     }

7 comments:

  1. @Kathiresan Muthu It totally depends on your interest, you can learn android as well. You can choose the way you like to start, either the paid classes or go for free online courses available. I will suggest first try the free courses available and get a overview.
    Some of links are as follow:

    https://developer.android.com/training/index.html

    http://www.vogella.com/tutorials/android.html

    http://www.raywenderlich.com/78574/android-tutorial-for-beginners-part-1

    https://www.youtube.com/playlist?list=PLGLfVvz_LVvSPjWpLPFEfOCbezi6vATIh

    Happy Coding!!

    ReplyDelete
  2. Great post and informative blog.it was awesome to read, thanks for sharing this great content to my vision.
    python Training in Chennai

    ReplyDelete
  3. If you want to become a professional IOS developer. you should learn IOS. By learning IOS you can able to create build views. You can handle user interaction via controls like buttons, switches, and sliders etc. We can also able to display data in a table view. You can create alert boxes, handle navigation and transition between views. You can also follow iOS App Development Online Training

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Thanks for sharing a great knowledgeable post.
    Thanks to compare all the doamins and for all your referral links.
    redmi service center in velachery

    ReplyDelete
  6. Hello, I read your blog occasionally, and I own a similar one, and I was just wondering if you get a lot of spam remarks? If so how do you stop it, any plugin or anything you can advise? I get so much lately it’s driving me insane, so any assistance is very much appreciated.
    AWS Training in Chennai | Best AWS Training in Chennai
    Best Data Science Training in Chennai
    Best Python Training in Chennai
    Best RPA Training in Chennai
    Digital Marketing Training in Chennai
    Matlab Training in Chennai
    Best AWS Course Training in Chennai
    Best Devops Course Training in Chennai
    Java Training Institute in Chennai

    ReplyDelete
  7. I do agree your blog for quiz programming concepts, which is very helpful to grow up your knowledge. keep sharing more
    AWS training in chennai | AWS training in anna nagar | AWS training in omr | AWS training in porur | AWS training in tambaram | AWS training in velachery

    ReplyDelete