@interface AppDelegate ()
//属性为nil的时候测试是否crash nil是不会崩溃的
@property AppDelegate* share;
@end
@implementation AppDelegate
- (AppDelegate*) test{
NSLog(@"==========");
return nil;
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//属性为nil的时候测试是否crash nil是不会崩溃的
NSLog(@"%@===",self.share );
[[[self.share test] test] test];
return YES;
}