automatic-ref-counting
ARC, Blocks and Retain Cycles
Working on an iOS project that targets 4.0 and 5.0, using ARC. Running into an issue related to blocks, ARC and referencing an object from outside the block. Here\'s some code:[详细]
2023-04-13 02:02 分类:问答ARC issue - cannot pass method to delegate?
Here\'s my scenario. I have a class A. Inside its implementation I create object of type B and set B\'s delegate to self (So B.delegate = self somewhere inside class A\'s implementation).[详细]
2023-04-13 02:01 分类:问答XCode 4.2 and ARC, why is it not turned on for me?
I just installed XCode 4.2, according to to everything I have read ARC is turned on automatically, and you have to go to build phases and flag the files where you want to manage memory by yourself, wh[详细]
2023-04-12 23:11 分类:问答Xcode 4.2 with ARC: will my code run even on iOS devices with firmware older than 5.0?
I updated my Xcode to 4.2 version, whi开发者_如何转开发ch includes the ARC technology. It seems to be a good thing, but if I enable ARC and edit my code according to Apple\'s suggestions, will my app[详细]
2023-04-12 20:56 分类:问答Several problems with the Objective-C ARC conversion
I\'m trying to convert my code to Objective-C ARC and get several errors. 1.: NSBezierPath *path = [NSBezierPath bezierPath];[详细]
2023-04-12 17:59 分类:问答iPhone 4 iOS5 Core Plot and ARC error:"The current deployment target does not support weak references"
I\'ve converted my project to iOS 5 and enabled ARC开发者_运维知识库. Now I need to integrate core plot with the project. When I try to instantiate a sample controller included with the Core Plot, I g[详细]
2023-04-12 17:58 分类:问答Does Automatic Reference Counting work as garbage collector? [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari[详细]
2023-04-12 15:21 分类:问答Synthesised properties for primitive data types using ARC -- weak or assign?
I was wondering what is the correct way to write synthesised properties for primitive data types (like bool) when ARC is enabled.[详细]
2023-04-12 15:15 分类:问答Is ARC really supported in iOS 4? The iOS 4.2 SDK is missing ARC-related symbols at linking time
I\'ve read and heard since ARC was first announced that it was a compile-time thing and would be backwards-compatible with iOS 4. I have successfully refactored my project to ARC using Xcode 4.2\'s au[详细]
2023-04-12 11:19 分类:问答Out parameters in ARC Objective-C
I\'m using Objective-C, and I don\'t know how to create and call a method with out parameters when compiling the code with the ARC compiler.[详细]
2023-04-12 06:45 分类:问答