是否ios7 UITableViewController的外观清晰(来自故事板)? [英] Is ios7 UITableViewController's Clear on Appearance broken (from Storyboard)?

查看:81
本文介绍了是否ios7 UITableViewController的外观清晰(来自故事板)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS7的XCode5中使用Storyboard,我取消选中UITableViewController的Clear on Appearance复选框。使用版本编辑器,我可以看到文件中的实际文本做出了相应的反应(顺便说一下,有没有更好的方法来查看故事板的源?)。但是当我添加

Using Storyboards in XCode5 for iOS7, I unchecked the "Clear on Appearance" checkbox for a UITableViewController. Using the version editor, I could see that the actual text in the file reacted accordingly (btw, is there a better way to see "source" of the storyboard?). But when I added

-(void) viewDidLoad {
    [super viewDidLoad];
    NSLog(@"clear on appear %d", self.clearsSelectionOnViewWillAppear);
}

它总是显示为1( YES )。无论故事板中的开启还是关闭。为了获得理想的效果,我不得不添加:

It always showed as 1 (YES). Regardless of on or off in the storyboard. To get the desired affect, I had to add:

self.clearsSelectionOnViewWillAppear= NO;

。我是否误解了这应该起作用的方式?还是坏了?

to that method. Did I misunderstand the way this was supposed to work? Or is it broken?

推荐答案

是的,似乎已经破了。

这适用于 viewDidLoad

self.clearsSelectionOnViewWillAppear = NO;

这篇关于是否ios7 UITableViewController的外观清晰(来自故事板)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆