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

iOS Introduction to Table Views Sorting Contacts Into Sections Custom Prototype Cells

Rea Rahhal
PLUS
Rea Rahhal
Courses Plus Student 4,732 Points

can'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.

Does it happen to be a regular error or an actual fatal thread error? I might be able to help :-)

3 Answers

Nathan F.
Nathan F.
30,773 Points

Make 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
Rea Rahhal
Courses Plus Student 4,732 Points

I 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.
Nathan F.
30,773 Points

Can you upload the project to Github and send me a link? I'll download the project and take a closer look.

Rea Rahhal
Rea Rahhal
Courses Plus Student 4,732 Points

I 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.
Nathan F.
30,773 Points

Sounds 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
Rea Rahhal
Courses Plus Student 4,732 Points

it 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.
Nathan F.
30,773 Points

What happens when you attempt

git add .

git push

?

Rea Rahhal
Rea Rahhal
Courses Plus Student 4,732 Points

when 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