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
520b4a63
Commit
520b4a63
authored
Jan 15, 2018
by
yuzheng.tz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频选择页在封面图获取成功前不允许点击完成
parent
b7ea114d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
...troller/TZImagePickerController/TZVideoPlayerController.m
+5
-0
No files found.
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
View file @
520b4a63
...
@@ -58,6 +58,9 @@
...
@@ -58,6 +58,9 @@
-
(
void
)
configMoviePlayer
{
-
(
void
)
configMoviePlayer
{
[[
TZImageManager
manager
]
getPhotoWithAsset
:
_model
.
asset
completion
:
^
(
UIImage
*
photo
,
NSDictionary
*
info
,
BOOL
isDegraded
)
{
[[
TZImageManager
manager
]
getPhotoWithAsset
:
_model
.
asset
completion
:
^
(
UIImage
*
photo
,
NSDictionary
*
info
,
BOOL
isDegraded
)
{
_cover
=
photo
;
_cover
=
photo
;
if
(
!
isDegraded
&&
photo
)
{
_doneButton
.
enabled
=
YES
;
}
}];
}];
[[
TZImageManager
manager
]
getVideoWithAsset
:
_model
.
asset
completion
:
^
(
AVPlayerItem
*
playerItem
,
NSDictionary
*
info
)
{
[[
TZImageManager
manager
]
getVideoWithAsset
:
_model
.
asset
completion
:
^
(
AVPlayerItem
*
playerItem
,
NSDictionary
*
info
)
{
dispatch_async
(
dispatch_get_main_queue
(),
^
{
dispatch_async
(
dispatch_get_main_queue
(),
^
{
...
@@ -101,6 +104,7 @@
...
@@ -101,6 +104,7 @@
_doneButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_doneButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_doneButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_doneButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_doneButton
.
enabled
=
NO
;
[
_doneButton
addTarget
:
self
action
:
@selector
(
doneButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_doneButton
addTarget
:
self
action
:
@selector
(
doneButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
TZImagePickerController
*
tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
TZImagePickerController
*
tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
if
(
tzImagePickerVc
)
{
if
(
tzImagePickerVc
)
{
...
@@ -110,6 +114,7 @@
...
@@ -110,6 +114,7 @@
[
_doneButton
setTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Done"
]
forState
:
UIControlStateNormal
];
[
_doneButton
setTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Done"
]
forState
:
UIControlStateNormal
];
[
_doneButton
setTitleColor
:[
UIColor
colorWithRed
:(
83
/
255
.
0
)
green
:(
179
/
255
.
0
)
blue
:(
17
/
255
.
0
)
alpha
:
1
.
0
]
forState
:
UIControlStateNormal
];
[
_doneButton
setTitleColor
:[
UIColor
colorWithRed
:(
83
/
255
.
0
)
green
:(
179
/
255
.
0
)
blue
:(
17
/
255
.
0
)
alpha
:
1
.
0
]
forState
:
UIControlStateNormal
];
}
}
[
_doneButton
setTitleColor
:
tzImagePickerVc
.
oKButtonTitleColorDisabled
forState
:
UIControlStateDisabled
];
[
_toolBar
addSubview
:
_doneButton
];
[
_toolBar
addSubview
:
_doneButton
];
[
self
.
view
addSubview
:
_toolBar
];
[
self
.
view
addSubview
:
_toolBar
];
}
}
...
...
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