嗨,当我在一个页面中按下按钮以连接到另一个视图时出现错误
请你帮我提前谢谢!
这是我的代码
-(void)buttonPressed:(UIButton *)button
{
NSLog(@"button %u -- frame: %@", button.tag, NSStringFromCGRect(button.frame));
[self performSegueWithIdentifier:@"WeekView" sender:self];
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString: @"WeekView"]){
[segue.destinationViewController setTitle:@"WeekView"];
}}
此行中的此错误
with debugging = Signal Sigabrat start from here
[self performSegueWithIdentifier:@"WeekView" sender:self];
我还在 Segue 中识别 WeekView 并使用 shipt+command+K 清理但仍然错误