Skip to content

Commit

Permalink
fix some bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YPLiang19 committed May 1, 2019
1 parent 7fbef1e commit 0c25c62
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 21 deletions.
2 changes: 1 addition & 1 deletion MangoFix.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s| Pod::Spec.new do |s|
s.name = "MangoFix" s.name = "MangoFix"
s.version = "1.1.5" s.version = "1.1.6"
s.summary = "MangoFix" s.summary = "MangoFix"
s.description = <<-DESC s.description = <<-DESC
Mango is a DSL which syntax is very similar to Objective-C,Mango is also an iOS App hotfix SDK. You can use Mango method replace any Objective-C method. Mango is a DSL which syntax is very similar to Objective-C,Mango is also an iOS App hotfix SDK. You can use Mango method replace any Objective-C method.
Expand Down
2 changes: 2 additions & 0 deletions MangoFixDemo/MangoFixDemo/SuperMyController.h
Expand Up @@ -10,4 +10,6 @@


@interface SuperMyController : UIViewController @interface SuperMyController : UIViewController


@property(nonatomic,copy) id block;

@end @end
15 changes: 0 additions & 15 deletions MangoFixDemo/MangoFixDemo/SuperMyController.m
Expand Up @@ -19,21 +19,6 @@ - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
} }


//- (void)testMasonry{
// UIView *superview = self.view;
// UIView *view1 = [[UIView alloc] init];
// view1.translatesAutoresizingMaskIntoConstraints = NO;
// view1.backgroundColor = [UIColor greenColor];
// [superview addSubview:view1];
// UIEdgeInsets padding = UIEdgeInsetsMake(10, 10, 10, 10);
// [view1 mas_makeConstraints:^(MASConstraintMaker *make) {
// make.top.equalTo(superview.mas_top).with.offset(padding.top); //with is an optional semantic filler
// make.left.equalTo(superview.mas_left).with.offset(padding.left);
// make.bottom.equalTo(superview.mas_bottom).with.offset(-padding.bottom);
// make.right.equalTo(superview.mas_right).with.offset(-padding.right);
// }];
//}

- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; [super didReceiveMemoryWarning];
} }
Expand Down
4 changes: 4 additions & 0 deletions MangoFixDemo/MangoFixDemo/demo.mg
Expand Up @@ -172,6 +172,7 @@ self.resultView.text = @"here is Mango method";


} }


int a = 1;


class SuperMyController:UIViewController{ class SuperMyController:UIViewController{


Expand Down Expand Up @@ -217,6 +218,9 @@ class SubMyController:SuperMyController {
self.view.addSubview:(view); self.view.addSubview:(view);
view.backgroundColor = UIColor.redColor(); view.backgroundColor = UIColor.redColor();
self.rotateView = view; self.rotateView = view;
self.block = ^{
NSLog(view);
};
} }


} }
4 changes: 2 additions & 2 deletions MangoFixDemo/Podfile
Expand Up @@ -2,8 +2,8 @@
# platform :ios, '8.0' # platform :ios, '8.0'


target 'MangoFixDemo' do target 'MangoFixDemo' do
#pod 'MangoFix', :path => '../' pod 'MangoFix', :path => '../'
pod 'MangoFix' #pod 'MangoFix'
pod 'Masonry' pod 'Masonry'
end end


9 changes: 6 additions & 3 deletions MangoFixDemo/Podfile.lock
Expand Up @@ -3,18 +3,21 @@ PODS:
- Masonry (1.1.0) - Masonry (1.1.0)


DEPENDENCIES: DEPENDENCIES:
- MangoFix - MangoFix (from `../`)
- Masonry - Masonry


SPEC REPOS: SPEC REPOS:
https://github.com/cocoapods/specs.git: https://github.com/cocoapods/specs.git:
- MangoFix
- Masonry - Masonry


EXTERNAL SOURCES:
MangoFix:
:path: "../"

SPEC CHECKSUMS: SPEC CHECKSUMS:
MangoFix: 6b23a5a07cc46ee4f7b38856cbc3e9f4097586ba MangoFix: 6b23a5a07cc46ee4f7b38856cbc3e9f4097586ba
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201 Masonry: 678fab65091a9290e40e2832a55e7ab731aad201


PODFILE CHECKSUM: 8b419bb9698579d5a8d614732a5d068bea7d7c8a PODFILE CHECKSUM: d4c840804038b7a88dd36af2034601338236c188


COCOAPODS: 1.6.1 COCOAPODS: 1.6.1

0 comments on commit 0c25c62

Please sign in to comment.