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
f3a731aa
Commit
f3a731aa
authored
Jan 24, 2017
by
tanzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:相册列表页的tableView高度
parent
85fcec7c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
TZImagePickerController.xcodeproj/project.pbxproj
TZImagePickerController.xcodeproj/project.pbxproj
+3
-3
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+3
-4
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+2
-4
No files found.
TZImagePickerController.xcodeproj/project.pbxproj
View file @
f3a731aa
...
@@ -303,7 +303,7 @@
...
@@ -303,7 +303,7 @@
TargetAttributes
=
{
TargetAttributes
=
{
900E657B1C2BB8D5003D9A9E
=
{
900E657B1C2BB8D5003D9A9E
=
{
CreatedOnToolsVersion
=
7.2
;
CreatedOnToolsVersion
=
7.2
;
DevelopmentTeam
=
ZH74J4ERQH
;
DevelopmentTeam
=
T86X98NCU2
;
ProvisioningStyle
=
Automatic
;
ProvisioningStyle
=
Automatic
;
};
};
900E65941C2BB8D5003D9A9E
=
{
900E65941C2BB8D5003D9A9E
=
{
...
@@ -529,7 +529,7 @@
...
@@ -529,7 +529,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
DEVELOPMENT_TEAM
=
ZH74J4ERQH
;
DEVELOPMENT_TEAM
=
T86X98NCU2
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
@@ -550,7 +550,7 @@
...
@@ -550,7 +550,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
DEVELOPMENT_TEAM
=
ZH74J4ERQH
;
DEVELOPMENT_TEAM
=
T86X98NCU2
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
...
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
f3a731aa
...
@@ -547,14 +547,13 @@
...
@@ -547,14 +547,13 @@
top
=
44
;
top
=
44
;
if
(
iOS7Later
)
top
+=
20
;
if
(
iOS7Later
)
top
+=
20
;
tableViewHeight
=
self
.
view
.
tz_height
-
top
;
tableViewHeight
=
self
.
view
.
tz_height
-
top
;
}
}
else
{
else
{
CGFloat
navigationHeight
=
44
;
CGFloat
navigationHeight
=
44
;
if
(
iOS7Later
)
navigationHeight
+=
20
;
if
(
iOS7Later
)
navigationHeight
+=
20
;
tableViewHeight
=
self
.
view
.
tz_height
-
navigationHeight
;
tableViewHeight
=
self
.
view
.
tz_height
-
navigationHeight
;
}
}
_tableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
top
,
self
.
view
.
tz_width
,
self
.
view
.
tz_height
-
top
)
style
:
UITableViewStylePlain
];
_tableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
top
,
self
.
view
.
tz_width
,
tableViewHeight
)
style
:
UITableViewStylePlain
];
_tableView
.
rowHeight
=
70
;
_tableView
.
rowHeight
=
70
;
_tableView
.
tableFooterView
=
[[
UIView
alloc
]
init
];
_tableView
.
tableFooterView
=
[[
UIView
alloc
]
init
];
_tableView
.
dataSource
=
self
;
_tableView
.
dataSource
=
self
;
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
f3a731aa
...
@@ -126,8 +126,7 @@ static CGSize AssetGridThumbnailSize;
...
@@ -126,8 +126,7 @@ static CGSize AssetGridThumbnailSize;
top
=
44
;
top
=
44
;
if
(
iOS7Later
)
top
+=
20
;
if
(
iOS7Later
)
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
;
CGFloat
navigationHeight
=
44
;
if
(
iOS7Later
)
navigationHeight
+=
20
;
if
(
iOS7Later
)
navigationHeight
+=
20
;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
-
navigationHeight
:
self
.
view
.
tz_height
-
navigationHeight
;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
-
navigationHeight
:
self
.
view
.
tz_height
-
navigationHeight
;
...
@@ -176,8 +175,7 @@ static CGSize AssetGridThumbnailSize;
...
@@ -176,8 +175,7 @@ static CGSize AssetGridThumbnailSize;
CGFloat
yOffset
=
0
;
CGFloat
yOffset
=
0
;
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
yOffset
=
self
.
view
.
tz_height
-
50
;
yOffset
=
self
.
view
.
tz_height
-
50
;
}
}
else
{
else
{
CGFloat
navigationHeight
=
44
;
CGFloat
navigationHeight
=
44
;
if
(
iOS7Later
)
navigationHeight
+=
20
;
if
(
iOS7Later
)
navigationHeight
+=
20
;
yOffset
=
self
.
view
.
tz_height
-
50
-
navigationHeight
;
yOffset
=
self
.
view
.
tz_height
-
50
-
navigationHeight
;
...
...
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