是否ios7 UITableViewController的外观清晰(来自故事板)? [英] Is ios7 UITableViewController's Clear on Appearance broken (from Storyboard)?
问题描述
在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屋!