Commit f3a731aa authored by tanzhen's avatar tanzhen

优化:相册列表页的tableView高度

parent 85fcec7c
...@@ -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",
......
...@@ -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;
......
...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment