Skip to content

Loading…

Enable ARC #22

Merged
merged 1 commit into from

3 participants

@mosamer

Just removed memory-related code causing error while building under ARC-enabled project

@mosamer

I think this is a duplicate for Issue #18, sorry a GitHub newbie :)

@nolanRatu

Hi Mosamer

Hoping if possible to help with my issues thanks?

@renspr renspr merged commit 06f6aa2 into provideal:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 24, 2012
  1. @mosamer
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 15 deletions.
  1. +0 −2 MMGridView/Classes/MMGridView.h
  2. +1 −9 MMGridView/Classes/MMGridView.m
  3. +2 −4 MMGridView/Classes/MMGridViewCell.m
View
2 MMGridView/Classes/MMGridView.h
@@ -53,8 +53,6 @@
{
@private
UIScrollView *scrollView;
- id<MMGridViewDataSource> dataSource;
- id<MMGridViewDelegate> delegate;
NSUInteger numberOfRows;
NSUInteger numberOfColumns;
NSUInteger cellMargin;
View
10 MMGridView/Classes/MMGridView.m
@@ -46,14 +46,6 @@ @implementation MMGridView
@synthesize currentPageIndex;
@synthesize numberOfPages;
-
-- (void)dealloc
-{
- [scrollView release];
- [super dealloc];
-}
-
-
- (id)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
@@ -85,7 +77,7 @@ - (void)createSubviews
self.contentMode = UIViewContentModeRedraw;
self.backgroundColor = [UIColor clearColor];
- self.scrollView = [[[UIScrollView alloc] initWithFrame:self.bounds] autorelease];
+ self.scrollView = [[UIScrollView alloc] initWithFrame:self.bounds] ;
self.scrollView.delegate = self;
self.scrollView.backgroundColor = [UIColor clearColor];
self.scrollView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
View
6 MMGridView/Classes/MMGridViewCell.m
@@ -20,6 +20,7 @@
//
#import "MMGridViewCell.h"
+#import "MMGridView.h"
@interface MMGridViewCell()
@@ -32,10 +33,7 @@ @implementation MMGridViewCell
@synthesize gridView;
@synthesize index;
-- (void)dealloc
-{
- [super dealloc];
-}
+
- (id)initWithFrame:(CGRect)frame
Something went wrong with that request. Please try again.