CoreBluetooth使类保持活力

时间:2014-08-18 12:48:28

标签: ios objective-c bluetooth core-bluetooth

我已经创建了一个处理CoreBluetooth方法的viewController我已经将方法编写为changePass和changeName ...这个名为BaseViewController的viewController也有很多我通过连接使用的实例变量。如果我尝试从BaseViewController创建一个对象,如果我不通过segue将它们发送到secondViewControler,我会丢失变量。

无论如何,我可以保持BaseViewController活着并在其上打开secondViewController而不会丢失BaseViewController中的变量。

0 个答案:

没有答案
相关问题