-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
62 changed files
with
3,449 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
Example/JFPopup.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// DrawerView.swift | ||
// JFPopup | ||
// | ||
// Created by 逸风 on 2021/10/10. | ||
// | ||
|
||
import UIKit | ||
|
||
class DrawerView: UIView { | ||
|
||
var closeHandle: (() -> ())? | ||
|
||
let closeBtn: UIButton = { | ||
var btn = UIButton(type: .system) | ||
if #available(iOS 13.0, *) { | ||
btn = UIButton(type: .close) | ||
} else { | ||
btn.setTitle("关闭", for: .normal) | ||
btn.setTitleColor(.black, for: .normal) | ||
} | ||
btn.jf.right = CGSize.jf.screenWidth() - 60 | ||
btn.jf.top = 15 + CGFloat.jf.statusBarHeight() | ||
btn.jf.size = CGSize(width: 45, height: 45) | ||
btn.addTarget(self, action: #selector(closeAction), for: .touchUpInside) | ||
return btn | ||
}() | ||
|
||
@objc func closeAction() { | ||
self.closeHandle?() | ||
} | ||
|
||
override init(frame: CGRect) { | ||
super.init(frame: frame) | ||
self.backgroundColor = UIColor.jf.rgb(0x7e7eff) | ||
self.addSubview(self.closeBtn) | ||
} | ||
|
||
required init?(coder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// | ||
// Use this file to import your target's public headers that you would like to expose to Swift. | ||
// | ||
#import "OCViewController.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// OCViewController.h | ||
// JFPopup_Example | ||
// | ||
// Created by 逸风 on 2021/10/10. | ||
// Copyright © 2021 CocoaPods. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface OCViewController : UIViewController | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// | ||
// OCViewController.m | ||
// JFPopup_Example | ||
// | ||
// Created by 逸风 on 2021/10/10. | ||
// Copyright © 2021 CocoaPods. All rights reserved. | ||
// | ||
|
||
#import "OCViewController.h" | ||
#import "JFPopup_Example-Swift.h" | ||
|
||
@interface OCViewController () | ||
|
||
@end | ||
|
||
@implementation OCViewController | ||
|
||
- (void)viewDidLoad { | ||
[super viewDidLoad]; | ||
self.title = @"OC"; | ||
self.view.backgroundColor = UIColor.whiteColor; | ||
[self popup_actionSheetWith:YES actions:^NSArray<JFPopupAction *> * _Nonnull{ | ||
return @[[[JFPopupAction alloc] initWith:@"拍摄" subTitle:@"照片或视频照片" autoDismiss:YES clickActionCallBack:^{ | ||
|
||
}]]; | ||
}]; | ||
// Do any additional setup after loading the view. | ||
} | ||
|
||
/* | ||
#pragma mark - Navigation | ||
// In a storyboard-based application, you will often want to do a little preparation before navigation | ||
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { | ||
// Get the new view controller using [segue destinationViewController]. | ||
// Pass the selected object to the new view controller. | ||
} | ||
*/ | ||
|
||
@end |
Oops, something went wrong.