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 trialPeter Chow
3,115 PointsProblems with newer version on Xcode
I am using the newer version of the Xcode, and when I create new activity, I couldn't choose NSObject as the subclass. So when I did the getter and setter, it shows 2 issues on the following methods in the BlogPost.m file:
(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { //warning Potentially incomplete method implementation. // Return the number of sections. return 0; }
(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { //warning Incomplete method implementation. // Return the number of rows in the section. return 0; }
The issues are potential incomplete method implementation.
Do anyone have the same problem?
2 Answers
Stone Preston
42,016 Pointsthose are just some default warnings xcode automatically inserts when it creates those methods for you. Basically its saying you should probably customize those methods a bit more from what xcode did for you. You can remove the warning comment if you want and it will go away
also as for not being able to choose NSObject from the dropdown when creating a new class. When that happens, just remove whatever is currently listed as the superclass in the menu and start typing NSObject, it should come up and you should be able to select it as the super class for that class.
Peter Chow
3,115 PointsThank you for helping again!! (I was having the animation problem last time =P)
Stone Preston
42,016 Pointsno problem : )