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
56412929
Commit
56412929
authored
Aug 16, 2017
by
yuzheng.tz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不允许选择gif图时不出现gif的标识;优化选原图时照片大小的显示
parent
132a5787
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
TZImagePickerController/TZImagePickerController/TZAssetCell.m
...agePickerController/TZImagePickerController/TZAssetCell.m
+1
-1
TZImagePickerController/TZImagePickerController/TZImageManager.m
...PickerController/TZImagePickerController/TZImageManager.m
+3
-1
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
...roller/TZImagePickerController/TZPhotoPreviewController.m
+1
-0
No files found.
TZImagePickerController/TZImagePickerController/TZAssetCell.m
View file @
56412929
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
self
.
videoImgView
.
hidden
=
NO
;
self
.
videoImgView
.
hidden
=
NO
;
_timeLength
.
tz_left
=
self
.
videoImgView
.
tz_right
;
_timeLength
.
tz_left
=
self
.
videoImgView
.
tz_right
;
_timeLength
.
textAlignment
=
NSTextAlignmentRight
;
_timeLength
.
textAlignment
=
NSTextAlignmentRight
;
}
else
if
(
type
==
TZAssetCellTypePhotoGif
)
{
}
else
if
(
type
==
TZAssetCellTypePhotoGif
&&
self
.
allowPickingGif
)
{
self
.
bottomView
.
hidden
=
NO
;
self
.
bottomView
.
hidden
=
NO
;
self
.
timeLength
.
text
=
@"GIF"
;
self
.
timeLength
.
text
=
@"GIF"
;
self
.
videoImgView
.
hidden
=
YES
;
self
.
videoImgView
.
hidden
=
YES
;
...
...
TZImagePickerController/TZImagePickerController/TZImageManager.m
View file @
56412929
...
@@ -404,7 +404,9 @@ static dispatch_once_t onceToken;
...
@@ -404,7 +404,9 @@ static dispatch_once_t onceToken;
for
(
NSInteger
i
=
0
;
i
<
photos
.
count
;
i
++
)
{
for
(
NSInteger
i
=
0
;
i
<
photos
.
count
;
i
++
)
{
TZAssetModel
*
model
=
photos
[
i
];
TZAssetModel
*
model
=
photos
[
i
];
if
([
model
.
asset
isKindOfClass
:[
PHAsset
class
]])
{
if
([
model
.
asset
isKindOfClass
:[
PHAsset
class
]])
{
[[
PHImageManager
defaultManager
]
requestImageDataForAsset
:
model
.
asset
options
:
nil
resultHandler
:^
(
NSData
*
imageData
,
NSString
*
dataUTI
,
UIImageOrientation
orientation
,
NSDictionary
*
info
)
{
PHImageRequestOptions
*
options
=
[[
PHImageRequestOptions
alloc
]
init
];
options
.
resizeMode
=
PHImageRequestOptionsResizeModeFast
;
[[
PHImageManager
defaultManager
]
requestImageDataForAsset
:
model
.
asset
options
:
options
resultHandler
:^
(
NSData
*
imageData
,
NSString
*
dataUTI
,
UIImageOrientation
orientation
,
NSDictionary
*
info
)
{
if
(
model
.
type
!=
TZAssetModelMediaTypeVideo
)
dataLength
+=
imageData
.
length
;
if
(
model
.
type
!=
TZAssetModelMediaTypeVideo
)
dataLength
+=
imageData
.
length
;
assetCount
++
;
assetCount
++
;
if
(
assetCount
>=
photos
.
count
)
{
if
(
assetCount
>=
photos
.
count
)
{
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
View file @
56412929
...
@@ -422,6 +422,7 @@
...
@@ -422,6 +422,7 @@
[
photoPreviewCell
setImageProgressUpdateBlock
:
^
(
double
progress
)
{
[
photoPreviewCell
setImageProgressUpdateBlock
:
^
(
double
progress
)
{
weakSelf
.
progress
=
progress
;
weakSelf
.
progress
=
progress
;
if
(
progress
>=
1
)
{
if
(
progress
>=
1
)
{
if
(
weakSelf
.
isSelectOriginalPhoto
)
[
weakSelf
showPhotoBytes
];
if
(
weakSelf
.
alertView
&&
[
weakCollectionView
.
visibleCells
containsObject
:
weakCell
])
{
if
(
weakSelf
.
alertView
&&
[
weakCollectionView
.
visibleCells
containsObject
:
weakCell
])
{
[
weakTzImagePickerVc
hideAlertView
:
weakSelf
.
alertView
];
[
weakTzImagePickerVc
hideAlertView
:
weakSelf
.
alertView
];
weakSelf
.
alertView
=
nil
;
weakSelf
.
alertView
=
nil
;
...
...
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