I have a problem in my storyboard. It works fine, but when I try to change the content property of the UITableView, it causes the following error
Assertion error in - [UITableView dequeueReusableCellWithIdentifier: forIndexPath:], / SourceCache / UIKit / UIKit-2903.23 / UITableView.m Application terminated due to unannounced exception "NSInternalInconsistencyException", reason: "could not delete cell with Cell identifier - must register either or class for identifier or connect prototype cell in storyboard "
I want to create a grouped tableview with a static cell. thanks in advance
code
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 2; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 3; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; return cell; }
source share