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
8ecb4b46
Commit
8ecb4b46
authored
Mar 16, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
affefcd0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ImageEditorManger.m
ios/ImageEditorManger.m
+5
-5
No files found.
ios/ImageEditorManger.m
View file @
8ecb4b46
...
@@ -53,7 +53,7 @@ ImageEditorManger *imageEditorManager = nil;
...
@@ -53,7 +53,7 @@ ImageEditorManger *imageEditorManager = nil;
data
.
imageURL
=
[
NSURL
URLWithString
:
image
.
origImage
];
data
.
imageURL
=
[
NSURL
URLWithString
:
image
.
origImage
];
[
dataSource
addObject
:
data
];
[
dataSource
addObject
:
data
];
}
}
UIView
*
currentWindo
w
=
[
Utils
getCurrentVC
].
view
;
UIView
*
rootVie
w
=
[
Utils
getCurrentVC
].
view
;
self
.
browser
.
dataSourceArray
=
dataSource
;
self
.
browser
.
dataSourceArray
=
dataSource
;
self
.
browser
.
currentPage
=
model
.
index
;
self
.
browser
.
currentPage
=
model
.
index
;
if
(
model
.
editable
)
{
if
(
model
.
editable
)
{
...
@@ -65,13 +65,13 @@ ImageEditorManger *imageEditorManager = nil;
...
@@ -65,13 +65,13 @@ ImageEditorManger *imageEditorManager = nil;
}
}
UIEdgeInsets
safeInsets
=
UIEdgeInsetsMake
(
0
,
0
,
0
,
0
);
UIEdgeInsets
safeInsets
=
UIEdgeInsetsMake
(
0
,
0
,
0
,
0
);
if
(
@available
(
iOS
11
.
0
,
*
))
{
if
(
@available
(
iOS
11
.
0
,
*
))
{
safeInsets
=
currentWindo
w
.
safeAreaInsets
;
safeInsets
=
rootVie
w
.
safeAreaInsets
;
NSLog
(
@" safe insets %.2f, %.2f"
,
safeInsets
.
top
,
safeInsets
.
bottom
);
NSLog
(
@" safe insets %.2f, %.2f"
,
safeInsets
.
top
,
safeInsets
.
bottom
);
}
else
{
}
else
{
}
}
CGSize
size
=
currentWindow
.
screen
.
bounds
.
size
;
CGSize
size
=
rootView
.
bounds
.
size
;
[
self
.
browser
showToView
:
currentWindo
w
containerRect
:
CGRectMake
(
safeInsets
.
left
,
safeInsets
.
top
,
size
.
width
-
safeInsets
.
left
-
safeInsets
.
right
,
size
.
height
-
safeInsets
.
top
-
safeInsets
.
bottom
)];
[
self
.
browser
showToView
:
rootVie
w
containerRect
:
CGRectMake
(
safeInsets
.
left
,
safeInsets
.
top
,
size
.
width
-
safeInsets
.
left
-
safeInsets
.
right
,
size
.
height
-
safeInsets
.
top
-
safeInsets
.
bottom
)];
}
}
#pragma mark - private
#pragma mark - private
...
@@ -89,7 +89,7 @@ ImageEditorManger *imageEditorManager = nil;
...
@@ -89,7 +89,7 @@ ImageEditorManger *imageEditorManager = nil;
[
self
toEditVC
:
lfPhotoEditVC
];
[
self
toEditVC
:
lfPhotoEditVC
];
[
self
.
browser
.
defaultToolViewHandler
.
sheetView
hideWithAnimation
:
YES
];
[
self
.
browser
.
defaultToolViewHandler
.
sheetView
hideWithAnimation
:
YES
];
}
else
{
}
else
{
[
imgData
.
yb_auxiliaryViewHandler
()
yb_showIncorrectToastWithContainer
:[
Utils
currentWindow
]
text
:
@"图片未加载完成"
];
[
imgData
.
yb_auxiliaryViewHandler
()
yb_showIncorrectToastWithContainer
:[
Utils
getCurrentVC
].
view
text
:
@"图片未加载完成"
];
}
}
}
}
...
...
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