1、在AppDelegate.h中设置全局变量,并初始化
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
//全局作用域数据
1、在AppDelegate.h中设置全局变量,并初始化
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
//全局作用域数据