storyboard相关知识点-零散记录

1.    在导航控制中, 当push到新视图时,隐藏toolbar 

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender

{

    [segue.destinationViewController setHidesBottomBarWhenPushed:YES];

}



2. 初始化segue通过indentifier,  触发 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender 方法

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath

{

    [tableView deselectRowAtIndexPath:indexPath animated:YES];

    [self performSegueWithIdentifier:@"Published_GetCountInformation_Segue" sender:indexPath];

}


     - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender   该方法,可传值到目标视图中。


你可能感兴趣的:(storyboard相关知识点-零散记录)