Permalink
Browse files

Enable building for ARC configurations

  • Loading branch information...
1 parent 840ab5d commit e3382f1e13e758cd04a2409a9c005bc4113c4389 @mosamer mosamer committed Nov 24, 2012
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
@@ -53,8 +53,6 @@
{
@private
UIScrollView *scrollView;
- id<MMGridViewDataSource> dataSource;
- id<MMGridViewDelegate> delegate;
NSUInteger numberOfRows;
NSUInteger numberOfColumns;
NSUInteger cellMargin;
@@ -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;
@@ -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

0 comments on commit e3382f1

Please sign in to comment.