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 trialArt Olivas
Front End Web Development Techdegree Student 6,133 Points"funFactLabel.text" on xcode7
I am running Xcode 7 and it is giving me an error every time I try to type "funFactLabel.text" The error states: UIView doe not have a member named 'text'
Any ideas?
1 Answer
Steve Hunter
57,712 PointsThe funFactLabel
should be a UILabel
not a UIView
.
Inside you view controller you should have declared it as such:
@IBOutlet weak var funFactLabel: UILabel!
Your main storyboard should have a label dragged onto it and a link created to the view controller by dragging the connection with your mouse.
I hope that helps!
Steve.
Art Olivas
Front End Web Development Techdegree Student 6,133 PointsArt Olivas
Front End Web Development Techdegree Student 6,133 PointsSteve! Thank you so much! That totally fixed everything.
Steve Hunter
57,712 PointsSteve Hunter
57,712 PointsNo problem! Glad it helped! :-)