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
NAUSHAD DARUWALLA
1,587 PointsCalendar Controls for iPhone
Hello all, I am trying to use this the DSLCalendarView in my iPhone app (https://github.com/PeteC/DSLCalendarView) and I am having several problems going about it.
1) When you import projects from Github to use in your own project, where do you put it (as in at the very top of the directory or the first level in your project directory?)
2) When I try to create an IBOutlet of the calendar property and connect it to the view controller, the view will not let me connect itself to the IBOutlet property
3) Finally, when I manually manually create and connect the property to the view (by connecting the view to the .h file and then specifying the type as the class of the calendar property and making it an IBOutlet) it gives me an o linker error when i try to compile.
Help with these questions will be greatly appreciated, thank you!
3 Answers
Dayton Pruet
17,912 PointsThe programmer has provided an example application within the GitHub repository, have you reviewed this example.
1) Most likely it does not matter where you put it, I would just put it where your other views are.
2) When you connect the IBOutlet in the XIB or StoryBoard, connect it from the Referencing Outlet to the File Owner, not the ViewController. This will most likely resolve this issue. See the example code for to see what I mean.
3) I believe getting your IBOutlet connected properly will resolve this issue.
I hope this answered your questions.
NAUSHAD DARUWALLA
1,587 PointsWhere is this example code so I can see it as well? And I also tried to connect from files owner to the referencing outlet but I did not understand which files owner and how would I go about that?
Dayton Pruet
17,912 PointsYou can get to the Example project code in the Example folder on the link you provided above. If you download the Download.zip file on the right side of the page for the link you provided, it will download all the code.
If you want to view the Example code in your web browser, here is the link.
https://github.com/PeteC/DSLCalendarView/tree/master/Example
The File's Owner shows in the Document Outline window. This window is to the left side of the graphical view of the views when you are looking at your views in the XIB or StoryBoard.