自定义UIViewController隐藏属性

时间:2014-11-04 01:44:13

标签: ios objective-c uiviewcontroller xcode6

TLDR

昨天处理此项目时,我无法显示UIViewController上的属性。这就像如何在VC上设置属性一样简单?我看不到VC的属性。

情况

自定义UIViewController(A)推送到第二个UIViewController(B),推送到第三个UIViewController(C)

//programmatically calling a push to the next view in A to B to C, example code from B to C.
EnterFinalHRViewController * finalHeartRate = [self.storyboard instantiateViewControllerWithIdentifier:@"EnterFinalHeartRateController"];
finalHeartRate.lanes = _lanes;
[self.navigationController pushViewController:finalHeartRate animated:YES];

NSMutableArray,车道,两次传递。不是问题。

当我到达VC(C)时,调试器会读取:

A self = (EnterFinalHRViewController *) @"0 objects" 0x15da40c0
V [0]

我在VC(C)中有一个读取

的头文件
#import <UIKit/UIKit.h>
#import "SwimTimingViewController.h"
#import "Lane.h"

@interface EnterFinalHRViewController : UIViewController <UICollectionViewDelegate, UICollectionViewDataSource, UIPickerViewDataSource, UIPickerViewDelegate>

@property (nonatomic, strong) NSMutableArray  *lanes;

@end

清晰度

  • Lanes只是传递的一个属性的一个例子。
  • 这是只是尝试在segue中设置和访问VC的属性
  • 我随时随地都能看到,更多的链接也会受到赞赏。

问题

为什么我在调试器的最终UIViewController中看不到self的任何属性,如何修复它,以及任何有用的调试技巧。

我的理论

自从昨晚升级到xcode的新版本后,有些东西破坏了/ xcode bug,我不知道那是什么。我现在使用的是Xcode Version 6.1(6A1052d)。我正在使用运行ios7的iPhone 5c进行测试。 (只要ios7中的所有内容都能正常运行,我就会升级。)

快速大声疾呼,感谢SO及以后的所有贡献者。总是非常热烈地欢迎帮助。

0 个答案:

没有答案
相关问题