Automatic Reference Counting (ARC) is a compiler feature that provides automatic memory management of Objective-C objects.
0
votes
1answer
22 views
Need to profile using Leaks with ARC enabled?
Is there any need any more to profile with Leaks now that we can use ARC (which incidentally is absolutely fantastic and really speeds up development!)
0
votes
1answer
25 views
iOS memory usage increases until crash
I have an iOS application that uses a UINavigationController to move forwards (push) and backwards (pop) in a fairly simple master/detail fashion.
The detail view controller has 2 or 3 full screen ...
1
vote
2answers
44 views
Capturing 'self' strongly in this block is likely to lead to a retain cycle
I have reqest with block. But the compiler issues a warning
"Capturing 'self' strongly in this block is likely to lead to a retain
cycle"
__weak typeof(self) weakSelf = self;
...
0
votes
0answers
17 views
Have error: Cast of c pointer type void to object-c pointer type Reachability require a bridged cast
On my iPhone application I checking if iphone connected via wifi or 3G using Reachability class. After importing Reachability files i got this ARC errors. Can you help me fixed this errors please.
...
0
votes
1answer
26 views
How to release memory from a PopOverViewController when the controller is removed from a view, ARC
Hi so I have a popoverviewcontroller with a tableview in it. everytime i press the button to view the popover, some memory is allocated (1024). If i press it multiple times the allocations just grows ...
0
votes
2answers
49 views
Potential leaks in code converted to ARC
I have translated some code of a library to ARC and i suspect I have failed to do so properly. Basically i have added som __bridge commands to the code. Xcode complains during analyze, saying that ...
1
vote
2answers
50 views
How can I manage memory in a loop under ARC without @autoreleasepool block
As before, we usually do something for loop like this:
for (int i = 0 ; i < 5; i ++) {
NSNumber * number = [[NSNumber alloc] initWithInt:i];
[muArray addObject:number];
[number release];
}
But ...
1
vote
1answer
17 views
__has_feature(objc_arc) does not work for c++ static library linked to iOS app
So I have a simple iOS project which has to use static library. The library is written mainly in c++ and tends to be cross platform. It can be built using Xcode.
I create a sample iOS app project, ...
1
vote
1answer
50 views
Memory Management using ARC
I have following code in my project:
RBPPStockChartViewController * stocksController = [[RBPPStockChartViewController alloc] initWithNibName:@"RBPPStockChartViewController" bundle:nil];
...
2
votes
2answers
30 views
When calling dealloc from a UIView with ARC, can I assume ivars are still retained?
I am adding a KVO observer on a subclass of UIView to one of its subviews. I also have a strong reference to the subview. When I call removeObserver on the subview in dealloc, can I assume that the ...
0
votes
1answer
19 views
UIGraphicsGetImageFromCurrentImageContext leaking
I have a leak and I can't see where.
This is part of my code:
+ (UIImage *) imageWithColor:(UIColor *) color andSize:(CGSize) size {
UIGraphicsBeginImageContext(size);
CGContextRef context ...
1
vote
1answer
57 views
Apportable - Is -objc-arc supported?
I've a project with a bunch of files tagged as "-objc-arc" but when compiling with apportable I have tons of errors like: error: cast of C pointer type 'CFStringRef' (aka 'const struct __CFString *') ...
1
vote
0answers
27 views
Enabling ARC on Phonegap iOS project
I created a template project using the create in phonegap-2.7.0. This project would be non-ARC enabled and I wanted to convert it to ARC.
I went to Edit -> Refractor -> Convert to Objective-C ...
2
votes
2answers
31 views
ARC: When is ephemeral view controller delegate memory reclaimed with weak reference
This is a follow up question from a previous one which may have included too much circumstantial detail. Consider the following code:
BarViewController.h
#import <UIKit/UIKit.h>
@protocol ...
0
votes
1answer
27 views
UIImage imageWithData: does not release under ARC
Hi there i am working on an application which loads images from web for filling up the content view. i am using "MGBox2" for loading up the views into the sections and i am using a modified version of ...