0
我加载了一个viewController(LandingViewController),因为我的'ConnectionStatus'对象由于某种原因被UIKit释放了,我试图向它发送一条消息。Viewcontroller释放我的对象
我的代码如下:
@property (nonatomic, strong) ConnectionStatus *cStatus;
- (void)viewDidLoad
{
[super viewDidLoad];
...
self.cStatus = [[ConnectionStatus alloc] init];
}
当我加载了僵尸工具,我得到这个:
是否有一个原因,UIKit的是我的视图控制器之前重新分配的对象,即使负载?
UPDATE(我怎么加载这个视图控制器):
-(void)logout {
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
LandingViewController *lvc = [storyboard instantiateViewControllerWithIdentifier:@"landingVC"];
[self presentViewController:lvc animated:YES completion:nil];
}
loginButton?你有没有这种方法,如果是的话请分享 – Retro
让我更新代码而无需登录按钮...我害怕可能会误导... – Allen
似乎LandingViewController是交易所以cStatus也是交易。 – KudoCC