我有基类Connections
和类别CoreDataProperties
。在我的“FirstViewController”中我将数据存储到CoreDataProperties
属性,我也可以使用{{Connections
实例显示数据1}} class.My问题是,我想访问SecondViewController
中的存储值。如果我为Connections
和访问工具创建了一个对象,则会显示null
。
连接+ CoreDataProperties.h
@interface EY_Connections (CoreDataProperties)
@property (nullable, nonatomic, retain) NSString *connectionAddress;
@property (nullable, nonatomic, retain) NSString *connectionStatus;
@end
Firstviewcontroller.m
Connections *connect;
NSLog(@"ConnectionNo correct==>>%@",connect.connectionStatus);
它显示ConnectionStatus Value.But如果我在SecondviewController
中执行此操作。它没有显示。
SecondViewController.m
Connections *conn;
NSLog(@"er==>%@",conn.connectionStatus);
问题是什么?如何在SecondViewController中显示存储的Category值?