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
5c7ebaba
Commit
5c7ebaba
authored
Mar 18, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
76ce9b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
LFPhotoEditingController.m
...toEditingController/controller/LFPhotoEditingController.m
+43
-0
No files found.
ios/LFPhotoEditingController/controller/LFPhotoEditingController.m
View file @
5c7ebaba
...
@@ -24,6 +24,10 @@
...
@@ -24,6 +24,10 @@
#import "FilterSuiteUtils.h"
#import "FilterSuiteUtils.h"
#import "LFImageCoder.h"
#import "LFImageCoder.h"
#import "CheckView.h"
#import "Utils.h"
#import "NSObject+LFTipsGuideView.h"
#import "NSObject+LFTipsGuideView.h"
/************************ Attributes ************************/
/************************ Attributes ************************/
...
@@ -57,6 +61,8 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
...
@@ -57,6 +61,8 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
UIView
*
_edit_naviBar
;
UIView
*
_edit_naviBar
;
/** 底部栏菜单 */
/** 底部栏菜单 */
LFEditToolbar
*
_edit_toolBar
;
LFEditToolbar
*
_edit_toolBar
;
/** 对错 */
CheckView
*
_check
;
/** 剪切菜单 */
/** 剪切菜单 */
LFClipToolbar
*
_edit_clipping_toolBar
;
LFClipToolbar
*
_edit_clipping_toolBar
;
/** 安全区域涂层 */
/** 安全区域涂层 */
...
@@ -147,6 +153,10 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
...
@@ -147,6 +153,10 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
[
self
configCustomNaviBar
];
[
self
configCustomNaviBar
];
[
self
configBottomToolBar
];
[
self
configBottomToolBar
];
[
self
configDefaultOperation
];
[
self
configDefaultOperation
];
_check
=
[[
CheckView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
SCREEN_HEIGHT
,
self
.
view
.
frame
.
size
.
width
,
150
)
data
:
self
.
data
[
@"questions"
]];
[
self
.
view
addSubview
:
_check
];
}
}
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
-
(
void
)
viewWillAppear
:
(
BOOL
)
animated
...
@@ -592,6 +602,10 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
...
@@ -592,6 +602,10 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
_EditingView
.
splashEnable
=
NO
;
_EditingView
.
splashEnable
=
NO
;
/** 打开绘画 */
/** 打开绘画 */
_EditingView
.
drawEnable
=
!
_EditingView
.
drawEnable
;
_EditingView
.
drawEnable
=
!
_EditingView
.
drawEnable
;
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
self
->
_check
.
frame
=
CGRectMake
(
0
,
SCREEN_HEIGHT
,
self
.
view
.
frame
.
size
.
width
,
150
);
}];
}
}
break
;
break
;
case
LFEditToolbarType_sticker
:
case
LFEditToolbarType_sticker
:
...
@@ -600,6 +614,31 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
...
@@ -600,6 +614,31 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
[
self
changeStickerMenu
:
YES
animated
:
YES
];
[
self
changeStickerMenu
:
YES
animated
:
YES
];
}
}
break
;
break
;
case
LFEditToolbarType_eraser
:
NSLog
(
@"打开对错弹出框"
);
_EditingView
.
drawEnable
=
NO
;
if
(
self
.
data
[
@"questions"
]
==
nil
||
[
self
.
data
[
@"questions"
]
count
]
==
0
)
{
UIAlertController
*
alert
=
[
UIAlertController
alertControllerWithTitle
:
@"温馨提示"
message
:
@"暂无题目"
preferredStyle
:
UIAlertControllerStyleAlert
];
[
alert
addAction
:[
UIAlertAction
actionWithTitle
:
@"好"
style
:
UIAlertActionStyleCancel
handler
:
nil
]];
[
self
presentViewController
:
alert
animated
:
YES
completion
:
nil
];
break
;
}
if
(
_check
.
frame
.
origin
.
y
==
SCREEN_HEIGHT
)
{
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
if
([
Utils
isIPhoneXSeries
])
{
self
->
_check
.
frame
=
CGRectMake
(
0
,
SCREEN_HEIGHT
-
44
-
30
-
150
,
self
.
view
.
frame
.
size
.
width
,
150
);
}
else
{
self
->
_check
.
frame
=
CGRectMake
(
0
,
SCREEN_HEIGHT
-
44
-
150
,
self
.
view
.
frame
.
size
.
width
,
150
);
}
}];
}
else
{
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
self
->
_check
.
frame
=
CGRectMake
(
0
,
SCREEN_HEIGHT
,
self
.
view
.
frame
.
size
.
width
,
150
);
}];
}
break
;
case
LFEditToolbarType_text
:
case
LFEditToolbarType_text
:
{
{
[
self
showTextBarController
:
nil
];
[
self
showTextBarController
:
nil
];
...
@@ -623,6 +662,10 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
...
@@ -623,6 +662,10 @@ LFPhotoEditOperationStringKey const LFPhotoEditCropCanAspectRatioAttributeName =
{
{
[
_EditingView
setClipping
:
YES
animated
:
YES
];
[
_EditingView
setClipping
:
YES
animated
:
YES
];
[
self
changeClipMenu
:
YES
];
[
self
changeClipMenu
:
YES
];
[
UIView
animateWithDuration
:
0
.
3
animations
:
^
{
self
->
_check
.
frame
=
CGRectMake
(
0
,
SCREEN_HEIGHT
,
self
.
view
.
frame
.
size
.
width
,
150
);
}];
}
}
break
;
break
;
default
:
default
:
...
...
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