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
0ea4ee8b
Commit
0ea4ee8b
authored
Jul 15, 2017
by
yuzheng.tz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化设置navigationBar的translucent为NO时的情形
parent
291f9295
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+1
-3
TZImagePickerController/ViewController.m
TZImagePickerController/ViewController.m
+1
-1
No files found.
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
0ea4ee8b
...
@@ -142,9 +142,7 @@ static CGSize AssetGridThumbnailSize;
...
@@ -142,9 +142,7 @@ static CGSize AssetGridThumbnailSize;
if
(
iOS7Later
&&
!
TZ_isGlobalHideStatusBar
)
top
+=
20
;
if
(
iOS7Later
&&
!
TZ_isGlobalHideStatusBar
)
top
+=
20
;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
-
top
:
self
.
view
.
tz_height
-
top
;;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
-
top
:
self
.
view
.
tz_height
-
top
;;
}
else
{
}
else
{
CGFloat
navigationHeight
=
44
;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
:
self
.
view
.
tz_height
;
if
(
iOS7Later
&&
!
TZ_isGlobalHideStatusBar
)
navigationHeight
+=
20
;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
-
navigationHeight
:
self
.
view
.
tz_height
-
navigationHeight
;
}
}
_collectionView
=
[[
TZCollectionView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
top
,
self
.
view
.
tz_width
,
collectionViewHeight
)
collectionViewLayout
:
layout
];
_collectionView
=
[[
TZCollectionView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
top
,
self
.
view
.
tz_width
,
collectionViewHeight
)
collectionViewLayout
:
layout
];
...
...
TZImagePickerController/ViewController.m
View file @
0ea4ee8b
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,7 @@
return
;
return
;
}
}
TZImagePickerController
*
imagePickerVc
=
[[
TZImagePickerController
alloc
]
initWithMaxImagesCount
:
self
.
maxCountTF
.
text
.
integerValue
columnNumber
:
self
.
columnNumberTF
.
text
.
integerValue
delegate
:
self
pushPhotoPickerVc
:
YES
];
TZImagePickerController
*
imagePickerVc
=
[[
TZImagePickerController
alloc
]
initWithMaxImagesCount
:
self
.
maxCountTF
.
text
.
integerValue
columnNumber
:
self
.
columnNumberTF
.
text
.
integerValue
delegate
:
self
pushPhotoPickerVc
:
YES
];
// imagePickerVc.navigationBar.translucent = NO;
#pragma mark - 四类个性化设置,这些参数都可以不传,此时会走默认设置
#pragma mark - 四类个性化设置,这些参数都可以不传,此时会走默认设置
imagePickerVc
.
isSelectOriginalPhoto
=
_isSelectOriginalPhoto
;
imagePickerVc
.
isSelectOriginalPhoto
=
_isSelectOriginalPhoto
;
...
...
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