我在新建一个通过IB创建的UIViewController之后,对立面的UILabel进行了编辑,然后显示出来,但是发现UILabel立面的内容根本没有改变。这是为什么?NewViewController *newViewController = [[NewViewController alloc] initWithNibName:@"NewViewController" bundle:nil];
[newViewController.textLabel setText:@"Just Change Text"];
[self.navigationController pushViewController:newViewController animated:YES];
[newViewController.textLabel setText:@"Just Change Text"];
[self.navigationController pushViewController:newViewController animated:YES];
解决方案 »
- malloc: *** error for object 0x6c3c5a4: incorrect checksum for freed object - ob
- 问个关于相机的问题
- 急:iphone 一个关于按钮的问题
- 基于iphone移动平台的语音聊天
- 关于XCODE4如何创建控制器
- AMD的CPU在虚拟机下安装黑苹果,装完后出现了问题
- swift代理正向传值delegate总是出错!
- [求助]iOS9下,Safari点击微博短链接后不能跳转到对应APP
- share extension,但是在共享列表中总是显示不出来??
- IPV6环境问题
- 分享本人开发的首个个人应用【快易博】 新版出来啦,散分~
- iphone应用的Html5框架哪个最好?
如果能显示的话,那就是文字的问题啦
只有push的时候才会载入view
newViewController.textLabel 应该是0x0....
把[newViewController.textLabel setText:@"Just Change Text"];
放到[self.navigationController pushViewController:newViewController animated:YES];后面。刷新问题的说