forked from jasenhuang/NSObjectSafe
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNSObjectSafe.h
More file actions
29 lines (21 loc) · 871 Bytes
/
NSObjectSafe.h
File metadata and controls
29 lines (21 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// NSObjectSafe.h
// NSObjectSafe
//
// Created by jasenhuang on 15/12/29.
// Copyright © 2015年 tencent. All rights reserved.
//
/**
* Warn: NSObjectSafe must used in MRC, otherwise it will cause
* strange release error: [UIKeyboardLayoutStar release]: message sent to deallocated instance
*/
#import <UIKit/UIKit.h>
//! Project version number for NSObjectSafe.
FOUNDATION_EXPORT double NSObjectSafeVersionNumber;
//! Project version string for NSObjectSafe.
FOUNDATION_EXPORT const unsigned char NSObjectSafeVersionString[];
// In this header, you should import all the public headers of your framework using statements like #import <NSObjectSafe/PublicHeader.h>
@interface NSObject(Swizzle)
+ (void)swizzleClassMethod:(SEL)origSelector withMethod:(SEL)newSelector;
- (void)swizzleInstanceMethod:(SEL)origSelector withMethod:(SEL)newSelector;
@end