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


Troubles with assigning the a delegate

Hello all, I am trying to set the delegate for the calendarView object of class DSLCalendarView (which is a custom class found on github at this link: https://github.com/PeteC/DSLCalendarView) but when I run the app, I keep on getting a SIGABRT message. What should I do to resolve this problem. The code sample is attached at the bottom.

import "upcomingEventsViewController.h"

import "DSLCalendarView/branches/develop/DSLCalendarView/DSLCalendarView.h"

@interface upcomingEventsViewController ()<DSLCalendarViewDelegate>

@property(weak,nonatomic) IBOutlet DSLCalendarView* calendarView;


@implementation upcomingEventsViewController

  • (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization }

    return self; }

  • (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view.

    self.calendarView.delegate = self;


1 Answer

Sabine Geithner
Sabine Geithner
3,264 Points

What are you doing with "DSLCalendarView/branches/develop/DSLCalendarView/DSLCalendarView.h"? What is /branches/develop doing in there? I think that might be the root of your error.

You might want to look into cocoaPods to include other frameworks in your app. It's very easy to set up and eliminates the whole importing of files. http://cocoapods.org/