我有一封信件。
我将财产制成。
myTVC *myTable;
以及
@property (nonatomic, retain) myTVC *myTable;
then, on .m I have synthesized it 以及 created a getter
@synthesize myTable = _myTable;
以及
- (myTVC *) myTable {
if (_myTable == nil) {
_myTable = [[myTVC alloc] init];
}
return _myTable;
}
此时此刻,我只能这样做。
[self presentModalViewController:myTable animated:YES];
[myTable release];
as far as I thought, myTable s getter would run at this point 以及 allocate the tableViewController, but it is not running 以及 the app crashes telling me that I am trying to present a nil tableViewController...
我失踪了什么? 感谢。