大标题

xiaoxiao2025-06-18  10

//添加头视图 self.tab.tableHeaderView=vie;

//默认为关闭大标题 打开大标题为 prefersLargeTitles = YES self.navigationController.navigationBar.prefersLargeTitles = YES; self.title = @“健康数据”;

//网格点击 -(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{ if (indexPath.row == 0) { jiluViewController *jilu=[[jiluViewController alloc] init]; [self.navigationController pushViewController:jilu animated:YES];

NSLog(@"1234"); }else if (indexPath.row == 1){ NSLog(@"1111"); }else if (indexPath.row == 2){ NSLog(@"2222"); }else{ NSLog(@"3333"); shuimianViewController *shui=[[shuimianViewController alloc] init]; [self.navigationController pushViewController:shui animated:YES]; }

} //搜索框背景 sear.searchBarStyle = UISearchBarStyleMinimal;

转载请注明原文地址: https://www.6miu.com/read-5032090.html

最新回复(0)