From 633f940cb8e46f51cb0eaff5b5860cb90f6f2ca1 Mon Sep 17 00:00:00 2001 From: Alexis Candelaria Date: Thu, 15 Sep 2016 16:01:52 -0700 Subject: [PATCH 1/2] Exposed cacheTextView --- Source/SLKTextViewController.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/SLKTextViewController.h b/Source/SLKTextViewController.h index 6c2dcfd1..9cbc65f3 100644 --- a/Source/SLKTextViewController.h +++ b/Source/SLKTextViewController.h @@ -541,6 +541,11 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController */ + (void)clearAllCachedText; +/** + Caches text to disk. + */ +- (void)slk_cacheTextView; + #pragma mark - Customization ///------------------------------------------------ From 7439b47a4e9ed36f4dc3aa5e99432080d43502e0 Mon Sep 17 00:00:00 2001 From: Alexis Candelaria Date: Thu, 15 Sep 2016 16:26:07 -0700 Subject: [PATCH 2/2] removed private prefix --- Source/SLKTextViewController.h | 2 +- Source/SLKTextViewController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SLKTextViewController.h b/Source/SLKTextViewController.h index 9cbc65f3..97b24fae 100644 --- a/Source/SLKTextViewController.h +++ b/Source/SLKTextViewController.h @@ -544,7 +544,7 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController /** Caches text to disk. */ -- (void)slk_cacheTextView; +- (void)cacheTextView; #pragma mark - Customization diff --git a/Source/SLKTextViewController.m b/Source/SLKTextViewController.m index 34231a4d..cf96e80c 100644 --- a/Source/SLKTextViewController.m +++ b/Source/SLKTextViewController.m @@ -1812,7 +1812,7 @@ - (void)slk_reloadTextView } } -- (void)slk_cacheTextView +- (void)cacheTextView { [self slk_cacheAttributedTextToDisk:self.textView.attributedText]; }