原代码 :
错误现象 :页面跳转,属性传值失败。
解决方案1:传值语句应写到初始化语句后面,即 _chatVc=[[ChatViewController alloc] init];后面
解决方案2:在第二个页面的
-(void)viewWillAppear:(BOOL)animated
方法里接收传过来的值
原代码 :
错误现象 :页面跳转,属性传值失败。
解决方案1:传值语句应写到初始化语句后面,即 _chatVc=[[ChatViewController alloc] init];后面
解决方案2:在第二个页面的
-(void)viewWillAppear:(BOOL)animated
方法里接收传过来的值