diff --git a/JJException.podspec b/JJException.podspec index 5a8f8c0..4997aca 100644 --- a/JJException.podspec +++ b/JJException.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = "JJException" - s.version = "0.1.6" + s.version = "0.1.7" s.summary = "Handle the objective-c crash exception." # This description is used to generate tags and improve search results. diff --git a/JJException.xcodeproj/project.xcworkspace/xcuserdata/jezz.xcuserdatad/UserInterfaceState.xcuserstate b/JJException.xcodeproj/project.xcworkspace/xcuserdata/jezz.xcuserdatad/UserInterfaceState.xcuserstate index 8dd223f..c3d38c6 100644 Binary files a/JJException.xcodeproj/project.xcworkspace/xcuserdata/jezz.xcuserdatad/UserInterfaceState.xcuserstate and b/JJException.xcodeproj/project.xcworkspace/xcuserdata/jezz.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/JJException.xcodeproj/xcuserdata/jezz.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/JJException.xcodeproj/xcuserdata/jezz.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist index fe2b454..a86d1b6 100644 --- a/JJException.xcodeproj/xcuserdata/jezz.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ b/JJException.xcodeproj/xcuserdata/jezz.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -2,4 +2,88 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/JJException/PushViewController.m b/JJException/PushViewController.m index 321ff95..8b98693 100644 --- a/JJException/PushViewController.m +++ b/JJException/PushViewController.m @@ -20,6 +20,10 @@ - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(N } +- (void)dealloc{ + NSLog(@"dealloc"); +} + @end @interface PushViewController (){ @@ -32,6 +36,8 @@ @interface PushViewController (){ @property(nonatomic,readwrite,copy)NSString* test1; +@property(nonatomic,readwrite,copy)NSString* demoString1; + @end @implementation PushViewController @@ -47,8 +53,12 @@ - (void)viewDidLoad { [self testKVO]; [self testNotification]; + + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + _kvoObserver = nil; + }); - dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ + dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(6 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self dismissViewControllerAnimated:YES completion:nil]; });