Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Xcode 4.5 / iOS 6 compatibility #19

merged 1 commit into from

2 participants


The image resources would not be found by

[UIImage imageNamed:@""]

method. Therefore, I added the bundle name to the parameter.


In Xcode 4.5 or against the iOS 6 SDK (I am not sure as I am new to the project), the UIImage objects would always be nil.

@andrewroycarter andrewroycarter merged commit dc1b428 into andrewroycarter:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 TimerScroller/TimeScroller.m
6 TimerScroller/TimeScroller.m
@@ -30,7 +30,7 @@ @implementation TimeScroller
- (id)initWithDelegate:(id<TimeScrollerDelegate>)delegate
- UIImage *background = [[UIImage imageNamed:@"timescroll_pointer"] resizableImageWithCapInsets:UIEdgeInsetsMake(0.0f, 35.0f, 0.0f, 10.0f)];
+ UIImage *background = [[UIImage imageNamed:@"TimeScroller.bundle/timescroll_pointer"] resizableImageWithCapInsets:UIEdgeInsetsMake(0.0f, 35.0f, 0.0f, 10.0f)];
self = [super initWithFrame:CGRectMake(0.0f, 0.0f, 320.0f, background.size.height)];
if (self)
@@ -49,12 +49,12 @@ - (id)initWithDelegate:(id<TimeScrollerDelegate>)delegate
[_backgroundView addSubview:_handContainer];
_hourHand = [[UIView alloc] initWithFrame:CGRectMake(8.0f, 0.0f, 4.0f, 20.0f)];
- UIImageView *hourImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"timescroll_hourhand"]];
+ UIImageView *hourImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"TimeScroller.bundle/timescroll_hourhand"]];
[_hourHand addSubview:hourImageView];
[_handContainer addSubview:_hourHand];
_minuteHand = [[UIView alloc] initWithFrame:CGRectMake(8.0f, 0.0f, 4.0f, 20.0f)];
- UIImageView *minuteImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"timescroll_minutehand"]];
+ UIImageView *minuteImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"TimeScroller.bundle/timescroll_minutehand"]];
[_minuteHand addSubview:minuteImageView];
[_handContainer addSubview:_minuteHand];
Something went wrong with that request. Please try again.