我在新建一个通过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];
解决方案 »
- 那位大深帮忙解决一下iphong编程时出错了,这是哪儿出错了怎么解决 啊
- 基于iPhone手机开发的项目外包
- 如何做缓存
- html+javascript+IOS
- ios tableview和collectionView切换
- 1、关于企业发布(在iOS8.2)的可行方式?
- win7x64+vmware11.1.0,安装OS X 10.10失败
- UILocalNotification 失效
- 大神进来帮忙看看,关于NSString
- Xcode 老是报 One of the two will be used. Which one is undefined
- 分享本人开发的首个个人应用【快易博】 新版出来啦,散分~
- iphone应用的Html5框架哪个最好?
如果能显示的话,那就是文字的问题啦
只有push的时候才会载入view
newViewController.textLabel 应该是0x0....
把[newViewController.textLabel setText:@"Just Change Text"];
放到[self.navigationController pushViewController:newViewController animated:YES];后面。刷新问题的说