mirror of
https://github.com/DKJone/DKWechatHelper.git
synced 2026-07-29 06:12:07 +08:00
init project
添加初始项目
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
|
||||
// *** DO NOT EDIT THIS FILE! ***
|
||||
// This file is generated by Logos processing using dkhelperDylib.xm during each build.
|
||||
|
||||
// Logos by Dustin Howett
|
||||
// See http://iphonedevwiki.net/index.php/Logos
|
||||
@@ -0,0 +1,60 @@
|
||||
// See http://iphonedevwiki.net/index.php/Logos
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@interface CustomViewController
|
||||
|
||||
@property (nonatomic, copy) NSString* newProperty;
|
||||
|
||||
+ (void)classMethod;
|
||||
|
||||
- (NSString*)getMyName;
|
||||
|
||||
- (void)newMethod:(NSString*) output;
|
||||
|
||||
@end
|
||||
|
||||
%hook CustomViewController
|
||||
|
||||
+ (void)classMethod
|
||||
{
|
||||
%log;
|
||||
|
||||
%orig;
|
||||
}
|
||||
|
||||
%new
|
||||
-(void)newMethod:(NSString*) output{
|
||||
NSLog(@"This is a new method : %@", output);
|
||||
}
|
||||
|
||||
%new
|
||||
- (id)newProperty {
|
||||
return objc_getAssociatedObject(self, @selector(newProperty));
|
||||
}
|
||||
|
||||
%new
|
||||
- (void)setNewProperty:(id)value {
|
||||
objc_setAssociatedObject(self, @selector(newProperty), value, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
||||
}
|
||||
|
||||
- (NSString*)getMyName
|
||||
{
|
||||
%log;
|
||||
|
||||
NSString* password = MSHookIvar<NSString*>(self,"_password");
|
||||
|
||||
NSLog(@"password:%@", password);
|
||||
|
||||
[%c(CustomViewController) classMethod];
|
||||
|
||||
[self newMethod:@"output"];
|
||||
|
||||
self.newProperty = @"newProperty";
|
||||
|
||||
NSLog(@"newProperty : %@", self.newProperty);
|
||||
|
||||
return %orig();
|
||||
}
|
||||
|
||||
%end
|
||||
Reference in New Issue
Block a user