Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
dz_TZImagePickerController
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shuijing
dz_TZImagePickerController
Commits
f4de45fd
Commit
f4de45fd
authored
Sep 18, 2018
by
yuzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
弹出相机时去掉modalPresentationStyle的设置,防止屏幕旋转时有黑影
parent
8e046966
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
2 deletions
+0
-2
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+0
-1
TZImagePickerController/ViewController.m
TZImagePickerController/ViewController.m
+0
-1
No files found.
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
f4de45fd
...
@@ -670,7 +670,6 @@ static CGFloat itemMargin = 5;
...
@@ -670,7 +670,6 @@ static CGFloat itemMargin = 5;
self
.
imagePickerVc
.
videoMaximumDuration
=
tzImagePickerVc
.
videoMaximumDuration
;
self
.
imagePickerVc
.
videoMaximumDuration
=
tzImagePickerVc
.
videoMaximumDuration
;
}
}
self
.
imagePickerVc
.
mediaTypes
=
mediaTypes
;
self
.
imagePickerVc
.
mediaTypes
=
mediaTypes
;
_imagePickerVc
.
modalPresentationStyle
=
UIModalPresentationOverCurrentContext
;
if
(
tzImagePickerVc
.
uiImagePickerControllerSettingBlock
)
{
if
(
tzImagePickerVc
.
uiImagePickerControllerSettingBlock
)
{
tzImagePickerVc
.
uiImagePickerControllerSettingBlock
(
_imagePickerVc
);
tzImagePickerVc
.
uiImagePickerControllerSettingBlock
(
_imagePickerVc
);
}
}
...
...
TZImagePickerController/ViewController.m
View file @
f4de45fd
...
@@ -425,7 +425,6 @@
...
@@ -425,7 +425,6 @@
if
(
mediaTypes
.
count
)
{
if
(
mediaTypes
.
count
)
{
_imagePickerVc
.
mediaTypes
=
mediaTypes
;
_imagePickerVc
.
mediaTypes
=
mediaTypes
;
}
}
_imagePickerVc
.
modalPresentationStyle
=
UIModalPresentationOverCurrentContext
;
[
self
presentViewController
:
_imagePickerVc
animated
:
YES
completion
:
nil
];
[
self
presentViewController
:
_imagePickerVc
animated
:
YES
completion
:
nil
];
}
else
{
}
else
{
NSLog
(
@"模拟器中无法打开照相机,请在真机中使用"
);
NSLog
(
@"模拟器中无法打开照相机,请在真机中使用"
);
...
...
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