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
30ff7606
Commit
30ff7606
authored
Sep 02, 2017
by
yuzheng.tz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复禁止预览的功能
parent
b9c2e334
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
TZImagePickerController/TZImagePickerController/TZAssetCell.h
...agePickerController/TZImagePickerController/TZAssetCell.h
+1
-0
TZImagePickerController/TZImagePickerController/TZAssetCell.m
...agePickerController/TZImagePickerController/TZAssetCell.m
+5
-1
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+2
-4
No files found.
TZImagePickerController/TZImagePickerController/TZAssetCell.h
View file @
30ff7606
...
@@ -33,6 +33,7 @@ typedef enum : NSUInteger {
...
@@ -33,6 +33,7 @@ typedef enum : NSUInteger {
@property
(
nonatomic
,
copy
)
NSString
*
photoDefImageName
;
@property
(
nonatomic
,
copy
)
NSString
*
photoDefImageName
;
@property
(
nonatomic
,
assign
)
BOOL
showSelectBtn
;
@property
(
nonatomic
,
assign
)
BOOL
showSelectBtn
;
@property
(
assign
,
nonatomic
)
BOOL
allowPreview
;
@end
@end
...
...
TZImagePickerController/TZImagePickerController/TZAssetCell.m
View file @
30ff7606
...
@@ -230,7 +230,11 @@
...
@@ -230,7 +230,11 @@
-
(
void
)
layoutSubviews
{
-
(
void
)
layoutSubviews
{
[
super
layoutSubviews
];
[
super
layoutSubviews
];
if
(
self
.
allowPreview
)
{
_selectPhotoButton
.
frame
=
CGRectMake
(
self
.
tz_width
-
44
,
0
,
44
,
44
);
_selectPhotoButton
.
frame
=
CGRectMake
(
self
.
tz_width
-
44
,
0
,
44
,
44
);
}
else
{
_selectPhotoButton
.
frame
=
self
.
bounds
;
}
_selectImageView
.
frame
=
CGRectMake
(
self
.
tz_width
-
27
,
0
,
27
,
27
);
_selectImageView
.
frame
=
CGRectMake
(
self
.
tz_width
-
27
,
0
,
27
,
27
);
_imageView
.
frame
=
CGRectMake
(
0
,
0
,
self
.
tz_width
,
self
.
tz_height
);
_imageView
.
frame
=
CGRectMake
(
0
,
0
,
self
.
tz_width
,
self
.
tz_height
);
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
30ff7606
...
@@ -320,7 +320,7 @@ static CGFloat itemMargin = 5;
...
@@ -320,7 +320,7 @@ static CGFloat itemMargin = 5;
}
}
#pragma mark - Click Event
#pragma mark - Click Event
-
(
void
)
navLeftBarButtonClick
{
-
(
void
)
navLeftBarButtonClick
{
[
self
.
navigationController
popViewControllerAnimated
:
YES
];
[
self
.
navigationController
popViewControllerAnimated
:
YES
];
}
}
-
(
void
)
previewButtonClick
{
-
(
void
)
previewButtonClick
{
...
@@ -451,9 +451,7 @@ static CGFloat itemMargin = 5;
...
@@ -451,9 +451,7 @@ static CGFloat itemMargin = 5;
cell
.
allowPickingGif
=
tzImagePickerVc
.
allowPickingGif
;
cell
.
allowPickingGif
=
tzImagePickerVc
.
allowPickingGif
;
cell
.
model
=
model
;
cell
.
model
=
model
;
cell
.
showSelectBtn
=
tzImagePickerVc
.
showSelectBtn
;
cell
.
showSelectBtn
=
tzImagePickerVc
.
showSelectBtn
;
if
(
!
tzImagePickerVc
.
allowPreview
)
{
cell
.
allowPreview
=
tzImagePickerVc
.
allowPreview
;
cell
.
selectPhotoButton
.
frame
=
cell
.
bounds
;
}
__weak
typeof
(
cell
)
weakCell
=
cell
;
__weak
typeof
(
cell
)
weakCell
=
cell
;
__weak
typeof
(
self
)
weakSelf
=
self
;
__weak
typeof
(
self
)
weakSelf
=
self
;
...
...
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