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 trialRea Rahhal
Courses Plus Student 4,732 Pointscan't add the outlet from image to the ContactCell class, and also from the label to the class
I amusing Xcode 9. when I try to drag connect the image view from the storyboard to the contact cell class, I get the following error:
file:///Users/macuser/Desktop/mdetailapp/mdetailapp/Base.lproj/Main.storyboard: error: Illegal Configuration: The profileImageView1 outlet from the ContactCell to the UIImageView is invalid. Outlets cannot be connected to repeating content.
3 Answers
Nathan F.
30,773 PointsMake sure your contact cell prototype in the storyboard is set to a subclass of UITableViewCell, like UIContactCell, or whatever it is named in your project. Then try to drag the connection. Also make sure that your image view is within the prototype cell.
Rea Rahhal
Courses Plus Student 4,732 PointsI made sure that contact cell is a subclass of UITableViewCell and checked that the image and labels are within the prototype cell ,and the same error persists.
Nathan F.
30,773 PointsCan you upload the project to Github and send me a link? I'll download the project and take a closer look.
Rea Rahhal
Courses Plus Student 4,732 PointsI cannot view my newly added branch on Github.Its grayed out. and also there are no remotes available when I click source control-> pull.
Nathan F.
30,773 PointsSounds like maybe you have a detached head in git, or else your remotes got messed up somehow. What does git status
tell you?
Rea Rahhal
Courses Plus Student 4,732 Pointsit tells me : On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits)
Untracked files: (use "git add <file>..." to include in what will be committed)
Nathan F.
30,773 PointsWhat happens when you attempt
git add .
git push
?
Rea Rahhal
Courses Plus Student 4,732 Pointswhen I attempt git add . the first Time I got an error and the second time I got: warning: adding embedded git repository: Downloads/FirebaseSocialLogin-master/FirebaseDemo 3 after a long listing of warnings when I attempt git push I get : Counting objects: 3, done. Writing objects: 100% (3/3), 267 bytes | 89.00 KiB/s, done. Total 3 (delta 0), reused 0 (delta 0) To https://github.com/rrahhal1/mdetailapp.git 4b2228e..c4642bf master -> master
Maria Te
8,521 PointsMaria Te
8,521 PointsDoes it happen to be a regular error or an actual fatal thread error? I might be able to help :-)