Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

eric hughes
eric hughes
12,345 Points

setTintColor method objective c playlist builder code challenge answers (i figured it out)

here is the code for the .m file

import "ViewController.h"

@implementation ViewController

  • (void)viewDidLoad { [super viewDidLoad]; [self.timerButton setTitle:@"Start!" forState:UIControlStateNormal];

    UIColor *redColor = [UIColor redColor]; [_timerButton setTintColor:[UIColor redColor]]; // Enter your code below!

}

@end

William Wylie-Modro
William Wylie-Modro
8,031 Points

Wait..... Why did _timerButton work? Is it a block?

1 Answer

Since Eric mentioned this thread in connection with a another thread (that also dealt with this same challenge), it's only fair and proper of me to provide a cross reference link so these two are mutually interconnected:

https://teamtreehouse.com/forum/create-a-property-nsarray-called-chocolatebox-use-strong-and-nonatomic-modifiers

Note: There are multiple challenges being dealt with in that other thread, so please scroll down towards the bottom of the thread for a discussion of how I found the solution to this particular challenge.