123456789101112131415161718192021222324252627282930313233 |
- //
- // NSData+YYAdd.h
- // YYKit <https://github.com/ibireme/YYKit>
- //
- // Created by ibireme on 13/4/4.
- // Copyright (c) 2015 ibireme.
- //
- // This source code is licensed under the MIT-style license found in the
- // LICENSE file in the root directory of this source tree.
- //
- #import <Foundation/Foundation.h>
- /**
- Provide hash, encrypt, encode and some common method for `NSData`.
- */
- @interface NSData (YYAdd)
- #pragma mark - Others
- ///=============================================================================
- /// @name Others
- ///=============================================================================
- /**
- Create data from the file in main bundle (similar to [UIImage imageNamed:]).
-
- @param name The file name (in main bundle).
-
- @return A new data create from the file.
- */
- + (NSData *)dataNamed:(NSString *)name;
- @end
|