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
tecastecs
Full Stack JavaScript Techdegree Student 5,090 PointsI have a problem with setNeedDisplay() and draw(_ rect: CGRect) function in delegate
Hi ! I learn Custom views from your tutorial and apply it to my project but I have a problem with setNeedDisplay() and draw(_ rect: CGRect) function . I posted my question at http://stackoverflow.com/questions/40393955/call-setneedsdisplay-inside-delegate-not-work-swift-3-0 because Teamtreehouse editor is hard to post code so I post my question on stackoverflow Sorry for the inconvenience. It seems no one in stackoverflow can answer my question, So please help me if you have free time, thank you so so much