Merge pull request #269 from alexander-manenko/master

Fix build issue with TchRunnerMainView in XCode 5
This commit is contained in:
Phil Nash 2014-04-18 08:17:37 +01:00
commit 41d3f2b88b
1 changed files with 4 additions and 4 deletions

View File

@ -37,18 +37,18 @@
{ {
// Initialization code // Initialization code
self.backgroundColor = [UIColor blackColor]; self.backgroundColor = [UIColor blackColor];
appName = [[UITextField alloc] initWithFrame: CGRectMake( 0, 50, 320, 50 )]; appName = [[UITextField alloc] initWithFrame: CGRectMake( 0, 50, 320, 50 )];
[self addSubview: appName]; [self addSubview: appName];
arcSafeRelease( appName ); arcSafeRelease( appName );
appName.textColor = [[UIColor alloc] initWithRed:0.35 green:0.35 blue:1 alpha:1]; appName.textColor = [[UIColor alloc] initWithRed:0.35 green:0.35 blue:1 alpha:1];
arcSafeRelease( appName.textColor ); arcSafeRelease( appName.textColor );
appName.textAlignment = UITextAlignmentCenter; // or NSTextAlignmentCenter appName.textAlignment = NSTextAlignmentCenter;
appName.text = [NSString stringWithFormat:@"CATCH tests"]; appName.text = [NSString stringWithFormat:@"CATCH tests"];
// [self performSelector: @selector(showAlert) withObject:nil afterDelay:0.1]; // [self performSelector: @selector(showAlert) withObject:nil afterDelay:0.1];
[self performSelectorOnMainThread:@selector(showAlert) withObject:nil waitUntilDone:NO]; [self performSelectorOnMainThread:@selector(showAlert) withObject:nil waitUntilDone:NO];
} }
return self; return self;
} }