From 2595668102be215741a714b56dfacb393b759858 Mon Sep 17 00:00:00 2001 From: Mike De Wolfe Date: Thu, 15 May 2014 13:55:55 -0400 Subject: [PATCH 1/2] Removed calls to release and other non-ARC calls. --- CBAutoScrollLabel/CBAutoScrollLabel.m | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/CBAutoScrollLabel/CBAutoScrollLabel.m b/CBAutoScrollLabel/CBAutoScrollLabel.m index 52176d2..cbd8dd3 100644 --- a/CBAutoScrollLabel/CBAutoScrollLabel.m +++ b/CBAutoScrollLabel/CBAutoScrollLabel.m @@ -84,18 +84,10 @@ - (void)commonInit // store labels [self.scrollView addSubview:label]; [labelSet addObject:label]; - - #if ! __has_feature(objc_arc) - [label release]; - #endif } self.labels = [labelSet.allObjects copy]; - #if ! __has_feature(objc_arc) - [labelSet release]; - #endif - // default values _scrollDirection = CBAutoScrollDirectionLeft; _scrollSpeed = kDefaultPixelsPerSecond; @@ -114,13 +106,8 @@ - (void)commonInit - (void)dealloc { - self.labels = nil; [NSObject cancelPreviousPerformRequestsWithTarget:self]; [[NSNotificationCenter defaultCenter] removeObserver:self]; - - #if ! __has_feature(objc_arc) - [super dealloc]; - #endif } - (void)setFrame:(CGRect)frame @@ -140,10 +127,6 @@ - (UIScrollView *)scrollView _scrollView.backgroundColor = [UIColor clearColor]; [self addSubview:_scrollView]; - -#if ! __has_feature(objc_arc) - [_scrollView release]; -#endif } return _scrollView; } From 2e594e7cdba24608bb1b6d1d8fae181b4ba31620 Mon Sep 17 00:00:00 2001 From: Mike De Wolfe Date: Thu, 15 May 2014 13:58:20 -0400 Subject: [PATCH 2/2] Updated podcpsec to require ARC. --- AutoScrollLabel.podspec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AutoScrollLabel.podspec b/AutoScrollLabel.podspec index 1a6d4b2..c037ee6 100644 --- a/AutoScrollLabel.podspec +++ b/AutoScrollLabel.podspec @@ -1,15 +1,15 @@ Pod::Spec.new do |s| s.name = 'AutoScrollLabel' - s.version = '0.2.1' + s.version = '0.3.0' s.summary = 'A marquee like scrolling UILabel, think iPod track title scrolling. Provides edge fading, speed adjustment, scroll direction, etc.' s.homepage = 'https://github.com/cbess/AutoScrollLabel' s.license = { :type => 'MIT', :file => 'LICENSE.txt' } s.author = { 'Christopher Bess' => 'cbess@quantumquinn.com' } - s.source = { :git => 'https://github.com/cbess/AutoScrollLabel.git', :tag => 'v0.2.1' } + s.source = { :git => 'https://github.com/cbess/AutoScrollLabel.git', :tag => 'v0.3.0' } s.platform = :ios, '6.0' - s.requires_arc = false + s.requires_arc = true s.source_files = 'CBAutoScrollLabel/*.{h,m}' s.frameworks = 'QuartzCore', 'CoreGraphics' s.screenshots = 'https://github.com/cbess/AutoScrollLabel/raw/master/AutoScrollLabelDemo/screenshot.png'