今天是我重新上班的日子,也是我创建属于自己微博的日子。菜鸟笔记也正式开始,图片暂时就不添加了
简单的知识点:
1:隐藏导航栏
-(void)viewWillAppear:(BOOL)animated{
self.navigationController.navigationBarHidden =YES;
}
- (void)viewWillDisappear:(BOOL)animated{
self.navigationController.navigationBarHidden =NO;
}
-(void)viewWillAppear:(BOOL)animated{
[superviewWillAppear:animated];
self.tabBarController.tabBar.hidden = YES;
}
-(void)viewWillDisappear:(BOOL)animated{
[superviewWillDisappear:animated];
self.tabBarController.tabBar.hidden = NO;
}
3:隐藏push过去左上角的文字整体隐藏UIBarButtonItem *barButtonItem =[[UIBarButtonItemalloc]init];
barButtonItem.title =@"返回";
self.navigationItem.backBarButtonItem = barButtonItem;
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPathanimated:YES];
cell.accessoryType =UITableViewCellAccessoryDisclosureIndicator;
cell.detailTextLabel.text =@"请填写信息";