How to enable "Static table views are only valid when embedding in instances of UITableViewController" when creating an application?

I am starting out as a beginner in Objective-C, and I'm studying a tutorial for building an iOS application using Apple developer articles.

https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/SecondTutorial.html#//apple_ref/doc/uid/TP40011343-CH8-SW1

I created a denouement and I was stuck. I went through SO posts as below

I tried changing the source of the story to use "tableViewController" instead of "viewController", but the storyboard does not open.

I'm sure there is a simple solution, but I don’t know enough Objective-C or iOS development to know what it is or how to implement it.

I have my controller that implements UITableViewController, and my view is like a UITableView. I have added a screenshot below.

Xcode Storyboard setup

and error message:

Error message and description

My source for ToDoListTableViewController.his below:

 #import <UIKit/UIKit.h>

@interface ToDoListTableViewController : UITableViewController

- (IBAction)unwindToList:(UIStoryboardSegue *)segue;

@end

and implementation

#import "ToDoListTableViewController.h"

@interface ToDoListTableViewController ()

@end

@implementation ToDoListTableViewController

 . . . Other methods 

- (IBAction)unwindToList:(UIStoryboardSegue *)segue {
}
@end
+4
source share
1 answer

Your picture is small, so it’s a little difficult to say what we are looking at. Plus your descriptions are a bit vague.

, , , UITableViewController, UIViewController.

A UITableViewController - UIViewController. , , UITableViewController .

UITableViewController , , , - . , . .

:

' , "tableViewController" "viewController"...'

, . " "? " ", UITableViewController .

: "... ". , , . .

, .

, , - UIViewController , , " " " ", UITableViewController .

:

"". , , . UITableViewController , . UITableViewController. segue, UITableViewController , .

, , UITableViewController .

, SO. segues .

+5

All Articles