Automatic Reference Counting (ARC) is a compiler feature that provides automatic memory management of Objective-C objects.

learn more… | top users | synonyms (2)

1
vote
1answer
21 views

Why is the Xcode Analyzer given me a memory leak warning with this code?

Warning is: Potential leak of an object stored into 'escaped_value' Here is the code: - (NSURL*)generateURL:(NSString*)baseURL params:(NSDictionary*)params { if (params) { ...
0
votes
1answer
4 views

How to implement UIProgressView to display the progress of a method of another class?

I've been reading about delegate pattern. But answers and examples for this simple work are explained too bad and report many erros, expecially 'cause they are olds and I want to develop it in iOS6 ...
-1
votes
0answers
7 views

How to use dealloc method in a project without arc

I'm making a project without ARC and I don't understand which properties I need to release in dealloc method. Can you help me? thanks
0
votes
1answer
27 views

With ARC turned on, is there a different between alloc/init and normal autorelease methods? [duplicate]

What is the different between these two when using ARC in Objective-C for iOS? NSMutableArray *anArray = [[NSMutableArray alloc] initWithArray:itemsArray]; appDelegate.wishlistItemsArray = anArray; ...
0
votes
1answer
17 views

Reachability of IP address?

I'm struggling for a long time with this. To check reachability of a hostname, like "stackoverflow.com" works well. But reachability with an IP address is not. I've downloaded Apple's sample code, ...
0
votes
1answer
18 views

Is it possible to enable non-arc files without adding “fno-objc-arc” in compile sources of Build Phases?

Is it possible to somehow handle the non-arc files without adding fno-objc-arc to the compile sources in the build phases? More specifically, is there any way to add fno-objc-arc somewhere in the ...
3
votes
2answers
38 views

iOS/iPhone ARC memory management

__weak NSString *strin = [[NSString alloc] initWithFormat:@"hey"] ; NSLog(@"weak %@",strin); //returns weak (null) __weak NSString *strin =@"hey"; NSLog(@"weak %@",strin); //returns weak hey ...
0
votes
1answer
18 views

Disadvantage of using strong/retained for IBOutlet?

I have read several Q&A and documentations which state that we should use weak for IBOutlet unless it's top level objects from File's Owner. But if I still use strong/retained, is there any major ...
1
vote
5answers
53 views

How to release instance variable in ARC - Objective-C

I know the instance variable in ARC are by default __strong. How can I release an instance variable when the containing class is still retained. In the following example v is __strong and c is ...
1
vote
1answer
51 views

iOS view controller memory not released after it's been dismissed

When the user clicks a button it presents a new tab bar view controller with two view controllers. Here's how I do that ACLevelDownloadController *dvc = [[ACLevelDownloadController alloc] ...
0
votes
2answers
39 views

Objective-C: is there any leaks? [closed]

currentSettings - ivar settings - method's parameter here is the method which usually executed many times. ARC is enabled. currentSettings = [[NSMutableDictionary alloc]init]; currentSettings = ...
0
votes
1answer
49 views

ARC: Dealloc releases delegate before I can remove it from observer list

I have a pretty standard case and for the sake of simplicity, assume there's MyController and its MyModel. Heres's an excerpt of MyModel: @interface MyModel @property (nonatomic, weak) ...
0
votes
1answer
35 views

How to create an array of non-retained objects in arc?

How to create an array of non-retained objects in arc? These objects are observers in this array. Currently, I'm creating this array in this way: _observers = ...
0
votes
0answers
27 views

Release view controller - ARC - iOS

I am trying to make a custom alert view. I subclass UIViewController and add a few views to it. In a view controller where I have to create an alert, I say CustomAlertVC *customVC = [[CustomAlertVC ...
6
votes
0answers
111 views

Delphi TThread under ARC (iOS) not being released

This question may sound silly, but how should I properly terminate a thread using Delphi for iOS under ARC management??? Take this simple example: TMyThread = class(TThread) protected ...

1 2 3 4 5 144
15 30 50 per page