Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Merge pull request #513 from slackhq/exposing-cacheTextView
Browse files Browse the repository at this point in the history
Exposed slk_cacheTextView
  • Loading branch information
acandelaria1 committed Sep 15, 2016
2 parents 70318ca + 7439b47 commit e8fdf3e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Source/SLKTextViewController.h
Expand Up @@ -541,6 +541,11 @@ NS_CLASS_AVAILABLE_IOS(7_0) @interface SLKTextViewController : UIViewController
*/
+ (void)clearAllCachedText;

/**
Caches text to disk.
*/
- (void)cacheTextView;


#pragma mark - Customization
///------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion Source/SLKTextViewController.m
Expand Up @@ -1812,7 +1812,7 @@ - (void)slk_reloadTextView
}
}

- (void)slk_cacheTextView
- (void)cacheTextView
{
[self slk_cacheAttributedTextToDisk:self.textView.attributedText];
}
Expand Down

0 comments on commit e8fdf3e

Please sign in to comment.