我不断收到此错误消息
无法将类型为“ UITableViewController”的值强制转换为SecondViewController
老实说我不知道请帮忙
@RunWith(Karate.class)
@KarateOptions(features = "classpath:animals/cats/required.feature", tags = "@someTag")
public class CatsPostRunner {
}
在“ var”行上,但是现在在覆盖“ func行”上,我完全不知道这是什么意思。
答案 0 :(得分:1)
所以我解决了!我在第二个ViewController上的类被标错了,我忘记了大写字母S
答案 1 :(得分:0)
为此
var destination = segue.destination as! SecondViewController
为避免崩溃,您需要在假设的情节提要中将类名SecondViewController
设置为目标vc
class SecondViewController:UITableViewController {}
答案 2 :(得分:0)
class SecondViewController: UIViewController, UIImagePickerControllerDelegate, UINavigationControllerDelegate,UITableViewDelegate,UITableViewDataSource {
我希望这会起作用。