Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-native-geek-image-editor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
react-native-geek-image-editor
Commits
4ed40fc5
Commit
4ed40fc5
authored
Mar 18, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
242eddf0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
project.pbxproj
ios/RNGeekImageEditor.xcodeproj/project.pbxproj
+0
-0
YBIBIconManager.m
ios/YBImageBrowser/Helper/YBIBIconManager.m
+1
-1
YBIBImageData.h
ios/YBImageBrowser/Image/YBIBImageData.h
+1
-0
YBIBSheetView.m
ios/YBImageBrowser/ToolView/YBIBSheetView.m
+1
-1
YBImageBrowser.h
ios/YBImageBrowser/YBImageBrowser.h
+1
-1
YBImageBrowser.m
ios/YBImageBrowser/YBImageBrowser.m
+5
-6
No files found.
ios/RNGeekImageEditor.xcodeproj/project.pbxproj
View file @
4ed40fc5
This diff is collapsed.
Click to expand it.
ios/YBImageBrowser/Helper/YBIBIconManager.m
View file @
4ed40fc5
...
@@ -74,7 +74,7 @@ NSBundle *YBIBDefaultBundle(void) {
...
@@ -74,7 +74,7 @@ NSBundle *YBIBDefaultBundle(void) {
static
dispatch_once_t
onceToken
;
static
dispatch_once_t
onceToken
;
dispatch_once
(
&
onceToken
,
^
{
dispatch_once
(
&
onceToken
,
^
{
NSBundle
*
_bundle
=
[
NSBundle
bundleForClass
:
NSClassFromString
(
@"YBImageBrowser"
)];
NSBundle
*
_bundle
=
[
NSBundle
bundleForClass
:
NSClassFromString
(
@"YBImageBrowser"
)];
NSString
*
path
=
[
_bundle
pathForResource
:
@"YBImageBrowser
.bundle/YBImageBrowser
"
ofType
:
@"bundle"
];
NSString
*
path
=
[
_bundle
pathForResource
:
@"YBImageBrowser"
ofType
:
@"bundle"
];
bundle
=
[
NSBundle
bundleWithPath
:
path
];
bundle
=
[
NSBundle
bundleWithPath
:
path
];
});
});
return
bundle
;
return
bundle
;
...
...
ios/YBImageBrowser/Image/YBIBImageData.h
View file @
4ed40fc5
...
@@ -37,6 +37,7 @@ typedef void (^YBIBImageSingleTouchBlock)(YBIBImageData *imageData);
...
@@ -37,6 +37,7 @@ typedef void (^YBIBImageSingleTouchBlock)(YBIBImageData *imageData);
/// 内部图片滚动视图状态回调闭包
/// 内部图片滚动视图状态回调闭包
typedef
void
(
^
YBIBImageScrollViewStatusBlock
)(
YBIBImageData
*
imageData
,
UIScrollView
*
scrollView
);
typedef
void
(
^
YBIBImageScrollViewStatusBlock
)(
YBIBImageData
*
imageData
,
UIScrollView
*
scrollView
);
/**
/**
图片数据类,承担配置数据和处理数据的责任
图片数据类,承担配置数据和处理数据的责任
*/
*/
...
...
ios/YBImageBrowser/ToolView/YBIBSheetView.m
View file @
4ed40fc5
...
@@ -102,7 +102,7 @@ static CGFloat kOffsetSpace = 5;
...
@@ -102,7 +102,7 @@ static CGFloat kOffsetSpace = 5;
self
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
0
];
self
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
0
];
self
.
tableView
.
frame
=
_tableHideFrame
;
self
.
tableView
.
frame
=
_tableHideFrame
;
self
.
tableView
.
tableFooterView
=
[
UIView
new
]
;
self
.
tableView
.
tableFooterView
.
bounds
=
CGRectMake
(
0
,
0
,
self
.
tableView
.
frame
.
size
.
width
,
footerHeight
)
;
[
UIView
animateWithDuration
:
self
.
showDuration
animations
:
^
{
[
UIView
animateWithDuration
:
self
.
showDuration
animations
:
^
{
self
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
self
->
_backAlpha
];
self
.
backgroundColor
=
[[
UIColor
blackColor
]
colorWithAlphaComponent
:
self
->
_backAlpha
];
self
.
tableView
.
frame
=
self
->
_tableShowFrame
;
self
.
tableView
.
frame
=
self
->
_tableShowFrame
;
...
...
ios/YBImageBrowser/YBImageBrowser.h
View file @
4ed40fc5
...
@@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
...
@@ -36,7 +36,7 @@ NS_ASSUME_NONNULL_BEGIN
@param view 指定父视图(view 的大小不能为 CGSizeZero,但允许变化)
@param view 指定父视图(view 的大小不能为 CGSizeZero,但允许变化)
@param containerSize 容器大小(当 view 的大小允许变化时,必须指定确切的 containerSize)
@param containerSize 容器大小(当 view 的大小允许变化时,必须指定确切的 containerSize)
*/
*/
-
(
void
)
showToView
:(
UIView
*
)
view
container
Rect
:(
CGRect
)
rect
;
-
(
void
)
showToView
:(
UIView
*
)
view
container
Size
:(
CGSize
)
containerSize
;
-
(
void
)
showToView
:(
UIView
*
)
view
;
-
(
void
)
showToView
:(
UIView
*
)
view
;
-
(
void
)
show
;
-
(
void
)
show
;
...
...
ios/YBImageBrowser/YBImageBrowser.m
View file @
4ed40fc5
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
@property
(
nonatomic
,
strong
)
YBIBDataMediator
*
dataMediator
;
@property
(
nonatomic
,
strong
)
YBIBDataMediator
*
dataMediator
;
@property
(
nonatomic
,
strong
)
YBIBScreenRotationHandler
*
rotationHandler
;
@property
(
nonatomic
,
strong
)
YBIBScreenRotationHandler
*
rotationHandler
;
@property
(
nonatomic
,
assign
)
BOOL
transitioning
;
@property
(
nonatomic
,
assign
)
BOOL
transitioning
;
@end
@end
@implementation
YBImageBrowser
{
@implementation
YBImageBrowser
{
...
@@ -153,19 +152,20 @@
...
@@ -153,19 +152,20 @@
}
}
-
(
void
)
showToView
:
(
UIView
*
)
view
{
-
(
void
)
showToView
:
(
UIView
*
)
view
{
[
self
showToView
:
view
container
Rect
:
view
.
bounds
];
[
self
showToView
:
view
container
Size
:
view
.
bounds
.
size
];
}
}
-
(
void
)
showToView
:
(
UIView
*
)
view
container
Rect
:
(
CGRect
)
rect
{
-
(
void
)
showToView
:
(
UIView
*
)
view
container
Size
:
(
CGSize
)
containerSize
{
[
self
.
rotationHandler
startObserveStatusBarOrientation
];
[
self
.
rotationHandler
startObserveStatusBarOrientation
];
[
view
addSubview
:
self
];
[
view
addSubview
:
self
];
self
.
frame
=
rect
;
self
.
frame
=
view
.
bounds
;
self
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
self
.
autoresizingMask
=
UIViewAutoresizingFlexibleWidth
|
UIViewAutoresizingFlexibleHeight
;
_originWindowLevel
=
self
.
window
.
windowLevel
;
_originWindowLevel
=
self
.
window
.
windowLevel
;
[
self
hideStatusBar
];
[
self
hideStatusBar
];
[
self
.
rotationHandler
configContainerSize
:
rect
.
s
ize
];
[
self
.
rotationHandler
configContainerSize
:
containerS
ize
];
[
self
.
dataMediator
preloadWithPage
:
self
.
currentPage
];
[
self
.
dataMediator
preloadWithPage
:
self
.
currentPage
];
...
@@ -212,7 +212,6 @@
...
@@ -212,7 +212,6 @@
self
.
transitioning
=
YES
;
self
.
transitioning
=
YES
;
[
self
.
animatedTransition
yb_hideTransitioningWithContainer
:
self
startView
:
startView
endView
:
endView
orientation
:
self
.
rotationHandler
.
currentOrientation
completion
:^
{
[
self
.
animatedTransition
yb_hideTransitioningWithContainer
:
self
startView
:
startView
endView
:
endView
orientation
:
self
.
rotationHandler
.
currentOrientation
completion
:^
{
[
self
rebuild
];
[
self
rebuild
];
[
self
.
maskView
removeFromSuperview
];
[
self
removeFromSuperview
];
[
self
removeFromSuperview
];
self
.
transitioning
=
NO
;
self
.
transitioning
=
NO
;
}];
}];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment