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
017e1e86
Commit
017e1e86
authored
Feb 16, 2016
by
Zhen Tan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18 from fengyunyongjie/master
给UIView+Layout的属性增加tz_前缀,以防与Masonry等第三方库冲突
parents
41a7bd40
71c8e6ef
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
72 additions
and
72 deletions
+72
-72
TZImagePickerController/TZImagePickerController/TZAssetCell.m
...agePickerController/TZImagePickerController/TZAssetCell.m
+1
-1
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+3
-3
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+8
-8
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
...erController/TZImagePickerController/TZPhotoPreviewCell.m
+15
-15
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
...roller/TZImagePickerController/TZPhotoPreviewController.m
+10
-10
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
...troller/TZImagePickerController/TZVideoPlayerController.m
+3
-3
TZImagePickerController/TZImagePickerController/UIView+Layout.h
...ePickerController/TZImagePickerController/UIView+Layout.h
+10
-10
TZImagePickerController/TZImagePickerController/UIView+Layout.m
...ePickerController/TZImagePickerController/UIView+Layout.m
+20
-20
TZImagePickerController/ViewController.m
TZImagePickerController/ViewController.m
+2
-2
No files found.
TZImagePickerController/TZImagePickerController/TZAssetCell.m
View file @
017e1e86
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
-
(
void
)
setModel
:(
TZAssetModel
*
)
model
{
-
(
void
)
setModel
:(
TZAssetModel
*
)
model
{
_model
=
model
;
_model
=
model
;
[[
TZImageManager
manager
]
getPhotoWithAsset
:
model
.
asset
photoWidth
:
self
.
width
completion
:^
(
UIImage
*
photo
,
NSDictionary
*
info
,
BOOL
isDegraded
)
{
[[
TZImageManager
manager
]
getPhotoWithAsset
:
model
.
asset
photoWidth
:
self
.
tz_
width
completion
:^
(
UIImage
*
photo
,
NSDictionary
*
info
,
BOOL
isDegraded
)
{
self
.
imageView
.
image
=
photo
;
self
.
imageView
.
image
=
photo
;
}];
}];
self
.
selectPhotoButton
.
selected
=
model
.
isSelected
;
self
.
selectPhotoButton
.
selected
=
model
.
isSelected
;
...
...
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
017e1e86
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
if
(
!
[[
TZImageManager
manager
]
authorizationStatusAuthorized
])
{
if
(
!
[[
TZImageManager
manager
]
authorizationStatusAuthorized
])
{
_tipLable
=
[[
UILabel
alloc
]
init
];
_tipLable
=
[[
UILabel
alloc
]
init
];
_tipLable
.
frame
=
CGRectMake
(
8
,
0
,
self
.
view
.
width
-
16
,
300
);
_tipLable
.
frame
=
CGRectMake
(
8
,
0
,
self
.
view
.
tz_
width
-
16
,
300
);
_tipLable
.
textAlignment
=
NSTextAlignmentCenter
;
_tipLable
.
textAlignment
=
NSTextAlignmentCenter
;
_tipLable
.
numberOfLines
=
0
;
_tipLable
.
numberOfLines
=
0
;
_tipLable
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_tipLable
.
font
=
[
UIFont
systemFontOfSize
:
16
];
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
[
_progressHUD
setBackgroundColor
:[
UIColor
clearColor
]];
[
_progressHUD
setBackgroundColor
:[
UIColor
clearColor
]];
_HUDContainer
=
[[
UIView
alloc
]
init
];
_HUDContainer
=
[[
UIView
alloc
]
init
];
_HUDContainer
.
frame
=
CGRectMake
((
self
.
view
.
width
-
120
)
/
2
,
(
self
.
view
.
height
-
90
)
/
2
,
120
,
90
);
_HUDContainer
.
frame
=
CGRectMake
((
self
.
view
.
tz_width
-
120
)
/
2
,
(
self
.
view
.
tz_
height
-
90
)
/
2
,
120
,
90
);
_HUDContainer
.
layer
.
cornerRadius
=
8
;
_HUDContainer
.
layer
.
cornerRadius
=
8
;
_HUDContainer
.
clipsToBounds
=
YES
;
_HUDContainer
.
clipsToBounds
=
YES
;
_HUDContainer
.
backgroundColor
=
[
UIColor
darkGrayColor
];
_HUDContainer
.
backgroundColor
=
[
UIColor
darkGrayColor
];
...
@@ -203,7 +203,7 @@
...
@@ -203,7 +203,7 @@
CGFloat
top
=
44
;
CGFloat
top
=
44
;
if
(
iOS7Later
)
top
+=
20
;
if
(
iOS7Later
)
top
+=
20
;
_tableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
top
,
self
.
view
.
width
,
self
.
view
.
height
-
top
)
style
:
UITableViewStylePlain
];
_tableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
top
,
self
.
view
.
tz_width
,
self
.
view
.
tz_
height
-
top
)
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 @
017e1e86
...
@@ -56,20 +56,20 @@
...
@@ -56,20 +56,20 @@
-
(
void
)
configCollectionView
{
-
(
void
)
configCollectionView
{
UICollectionViewFlowLayout
*
layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
UICollectionViewFlowLayout
*
layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
CGFloat
margin
=
4
;
CGFloat
margin
=
4
;
CGFloat
itemWH
=
(
self
.
view
.
width
-
2
*
margin
-
4
)
/
4
-
margin
;
CGFloat
itemWH
=
(
self
.
view
.
tz_
width
-
2
*
margin
-
4
)
/
4
-
margin
;
layout
.
itemSize
=
CGSizeMake
(
itemWH
,
itemWH
);
layout
.
itemSize
=
CGSizeMake
(
itemWH
,
itemWH
);
layout
.
minimumInteritemSpacing
=
margin
;
layout
.
minimumInteritemSpacing
=
margin
;
layout
.
minimumLineSpacing
=
margin
;
layout
.
minimumLineSpacing
=
margin
;
CGFloat
top
=
margin
+
44
;
CGFloat
top
=
margin
+
44
;
if
(
iOS7Later
)
top
+=
20
;
if
(
iOS7Later
)
top
+=
20
;
_collectionView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectMake
(
margin
,
top
,
self
.
view
.
width
-
2
*
margin
,
self
.
view
.
height
-
50
-
top
)
collectionViewLayout
:
layout
];
_collectionView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectMake
(
margin
,
top
,
self
.
view
.
tz_width
-
2
*
margin
,
self
.
view
.
tz_
height
-
50
-
top
)
collectionViewLayout
:
layout
];
_collectionView
.
backgroundColor
=
[
UIColor
whiteColor
];
_collectionView
.
backgroundColor
=
[
UIColor
whiteColor
];
_collectionView
.
dataSource
=
self
;
_collectionView
.
dataSource
=
self
;
_collectionView
.
delegate
=
self
;
_collectionView
.
delegate
=
self
;
_collectionView
.
alwaysBounceHorizontal
=
NO
;
_collectionView
.
alwaysBounceHorizontal
=
NO
;
if
(
iOS7Later
)
_collectionView
.
contentInset
=
UIEdgeInsetsMake
(
0
,
0
,
0
,
2
);
if
(
iOS7Later
)
_collectionView
.
contentInset
=
UIEdgeInsetsMake
(
0
,
0
,
0
,
2
);
_collectionView
.
scrollIndicatorInsets
=
UIEdgeInsetsMake
(
0
,
0
,
0
,
-
2
);
_collectionView
.
scrollIndicatorInsets
=
UIEdgeInsetsMake
(
0
,
0
,
0
,
-
2
);
_collectionView
.
contentSize
=
CGSizeMake
(
self
.
view
.
width
,
((
_model
.
count
+
3
)
/
4
)
*
self
.
view
.
width
);
_collectionView
.
contentSize
=
CGSizeMake
(
self
.
view
.
tz_width
,
((
_model
.
count
+
3
)
/
4
)
*
self
.
view
.
tz_
width
);
[
self
.
view
addSubview
:
_collectionView
];
[
self
.
view
addSubview
:
_collectionView
];
[
_collectionView
registerNib
:[
UINib
nibWithNibName
:
@"TZAssetCell"
bundle
:
nil
]
forCellWithReuseIdentifier
:
@"TZAssetCell"
];
[
_collectionView
registerNib
:[
UINib
nibWithNibName
:
@"TZAssetCell"
bundle
:
nil
]
forCellWithReuseIdentifier
:
@"TZAssetCell"
];
}
}
...
@@ -83,7 +83,7 @@
...
@@ -83,7 +83,7 @@
}
}
-
(
void
)
configBottomToolBar
{
-
(
void
)
configBottomToolBar
{
UIView
*
bottomToolBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
view
.
height
-
50
,
self
.
view
.
width
,
50
)];
UIView
*
bottomToolBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
view
.
tz_height
-
50
,
self
.
view
.
tz_
width
,
50
)];
CGFloat
rgb
=
253
/
255
.
0
;
CGFloat
rgb
=
253
/
255
.
0
;
bottomToolBar
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
bottomToolBar
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
TZImagePickerController
*
imagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
TZImagePickerController
*
imagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
if
(
imagePickerVc
.
allowPickingOriginalPhoto
)
{
if
(
imagePickerVc
.
allowPickingOriginalPhoto
)
{
_originalPhotoButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_originalPhotoButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_originalPhotoButton
.
frame
=
CGRectMake
(
50
,
self
.
view
.
height
-
50
,
130
,
50
);
_originalPhotoButton
.
frame
=
CGRectMake
(
50
,
self
.
view
.
tz_
height
-
50
,
130
,
50
);
_originalPhotoButton
.
imageEdgeInsets
=
UIEdgeInsetsMake
(
0
,
-
8
,
0
,
0
);
_originalPhotoButton
.
imageEdgeInsets
=
UIEdgeInsetsMake
(
0
,
-
8
,
0
,
0
);
_originalPhotoButton
.
contentEdgeInsets
=
UIEdgeInsetsMake
(
0
,
-
45
,
0
,
0
);
_originalPhotoButton
.
contentEdgeInsets
=
UIEdgeInsetsMake
(
0
,
-
45
,
0
,
0
);
[
_originalPhotoButton
addTarget
:
self
action
:
@selector
(
originalPhotoButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_originalPhotoButton
addTarget
:
self
action
:
@selector
(
originalPhotoButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
...
@@ -122,7 +122,7 @@
...
@@ -122,7 +122,7 @@
}
}
_okButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_okButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_okButton
.
frame
=
CGRectMake
(
self
.
view
.
width
-
44
-
12
,
3
,
44
,
44
);
_okButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_
width
-
44
-
12
,
3
,
44
,
44
);
_okButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_okButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
[
_okButton
addTarget
:
self
action
:
@selector
(
okButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_okButton
addTarget
:
self
action
:
@selector
(
okButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_okButton
setTitle
:
@"确定"
forState
:
UIControlStateNormal
];
[
_okButton
setTitle
:
@"确定"
forState
:
UIControlStateNormal
];
...
@@ -132,7 +132,7 @@
...
@@ -132,7 +132,7 @@
_okButton
.
enabled
=
NO
;
_okButton
.
enabled
=
NO
;
_numberImageView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"photo_number_icon"
]];
_numberImageView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"photo_number_icon"
]];
_numberImageView
.
frame
=
CGRectMake
(
self
.
view
.
width
-
56
-
24
,
12
,
26
,
26
);
_numberImageView
.
frame
=
CGRectMake
(
self
.
view
.
tz_
width
-
56
-
24
,
12
,
26
,
26
);
_numberImageView
.
hidden
=
_selectedPhotoArr
.
count
<=
0
;
_numberImageView
.
hidden
=
_selectedPhotoArr
.
count
<=
0
;
_numberImageView
.
backgroundColor
=
[
UIColor
clearColor
];
_numberImageView
.
backgroundColor
=
[
UIColor
clearColor
];
...
@@ -148,7 +148,7 @@
...
@@ -148,7 +148,7 @@
UIView
*
divide
=
[[
UIView
alloc
]
init
];
UIView
*
divide
=
[[
UIView
alloc
]
init
];
CGFloat
rgb2
=
222
/
255
.
0
;
CGFloat
rgb2
=
222
/
255
.
0
;
divide
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb2
green
:
rgb2
blue
:
rgb2
alpha
:
1
.
0
];
divide
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb2
green
:
rgb2
blue
:
rgb2
alpha
:
1
.
0
];
divide
.
frame
=
CGRectMake
(
0
,
0
,
self
.
view
.
width
,
1
);
divide
.
frame
=
CGRectMake
(
0
,
0
,
self
.
view
.
tz_
width
,
1
);
[
bottomToolBar
addSubview
:
divide
];
[
bottomToolBar
addSubview
:
divide
];
[
bottomToolBar
addSubview
:
_previewButton
];
[
bottomToolBar
addSubview
:
_previewButton
];
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
View file @
017e1e86
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
if
(
self
)
{
if
(
self
)
{
self
.
backgroundColor
=
[
UIColor
blackColor
];
self
.
backgroundColor
=
[
UIColor
blackColor
];
_scrollView
=
[[
UIScrollView
alloc
]
init
];
_scrollView
=
[[
UIScrollView
alloc
]
init
];
_scrollView
.
frame
=
CGRectMake
(
0
,
0
,
self
.
width
,
self
.
height
);
_scrollView
.
frame
=
CGRectMake
(
0
,
0
,
self
.
tz_width
,
self
.
tz_
height
);
_scrollView
.
bouncesZoom
=
YES
;
_scrollView
.
bouncesZoom
=
YES
;
_scrollView
.
maximumZoomScale
=
2
.
5
;
_scrollView
.
maximumZoomScale
=
2
.
5
;
_scrollView
.
minimumZoomScale
=
1
.
0
;
_scrollView
.
minimumZoomScale
=
1
.
0
;
...
@@ -70,25 +70,25 @@
...
@@ -70,25 +70,25 @@
}
}
-
(
void
)
resizeSubviews
{
-
(
void
)
resizeSubviews
{
_imageContainerView
.
origin
=
CGPointZero
;
_imageContainerView
.
tz_
origin
=
CGPointZero
;
_imageContainerView
.
width
=
self
.
width
;
_imageContainerView
.
tz_width
=
self
.
tz_
width
;
UIImage
*
image
=
_imageView
.
image
;
UIImage
*
image
=
_imageView
.
image
;
if
(
image
.
size
.
height
/
image
.
size
.
width
>
self
.
height
/
self
.
width
)
{
if
(
image
.
size
.
height
/
image
.
size
.
width
>
self
.
tz_height
/
self
.
tz_
width
)
{
_imageContainerView
.
height
=
floor
(
image
.
size
.
height
/
(
image
.
size
.
width
/
self
.
width
));
_imageContainerView
.
tz_height
=
floor
(
image
.
size
.
height
/
(
image
.
size
.
width
/
self
.
tz_
width
));
}
else
{
}
else
{
CGFloat
height
=
image
.
size
.
height
/
image
.
size
.
width
*
self
.
width
;
CGFloat
height
=
image
.
size
.
height
/
image
.
size
.
width
*
self
.
tz_
width
;
if
(
height
<
1
||
isnan
(
height
))
height
=
self
.
height
;
if
(
height
<
1
||
isnan
(
height
))
height
=
self
.
tz_
height
;
height
=
floor
(
height
);
height
=
floor
(
height
);
_imageContainerView
.
height
=
height
;
_imageContainerView
.
tz_
height
=
height
;
_imageContainerView
.
centerY
=
self
.
height
/
2
;
_imageContainerView
.
tz_centerY
=
self
.
tz_
height
/
2
;
}
}
if
(
_imageContainerView
.
height
>
self
.
height
&&
_imageContainerView
.
height
-
self
.
height
<=
1
)
{
if
(
_imageContainerView
.
tz_height
>
self
.
tz_height
&&
_imageContainerView
.
tz_height
-
self
.
tz_
height
<=
1
)
{
_imageContainerView
.
height
=
self
.
height
;
_imageContainerView
.
tz_height
=
self
.
tz_
height
;
}
}
_scrollView
.
contentSize
=
CGSizeMake
(
self
.
width
,
MAX
(
_imageContainerView
.
height
,
self
.
height
));
_scrollView
.
contentSize
=
CGSizeMake
(
self
.
tz_width
,
MAX
(
_imageContainerView
.
tz_height
,
self
.
tz_
height
));
[
_scrollView
scrollRectToVisible
:
self
.
bounds
animated
:
NO
];
[
_scrollView
scrollRectToVisible
:
self
.
bounds
animated
:
NO
];
_scrollView
.
alwaysBounceVertical
=
_imageContainerView
.
height
<=
self
.
height
?
NO
:
YES
;
_scrollView
.
alwaysBounceVertical
=
_imageContainerView
.
tz_height
<=
self
.
tz_
height
?
NO
:
YES
;
_imageView
.
frame
=
_imageContainerView
.
bounds
;
_imageView
.
frame
=
_imageContainerView
.
bounds
;
}
}
...
@@ -119,8 +119,8 @@
...
@@ -119,8 +119,8 @@
}
}
-
(
void
)
scrollViewDidZoom
:(
UIScrollView
*
)
scrollView
{
-
(
void
)
scrollViewDidZoom
:(
UIScrollView
*
)
scrollView
{
CGFloat
offsetX
=
(
scrollView
.
width
>
scrollView
.
contentSize
.
width
)
?
(
scrollView
.
width
-
scrollView
.
contentSize
.
width
)
*
0
.
5
:
0
.
0
;
CGFloat
offsetX
=
(
scrollView
.
tz_width
>
scrollView
.
contentSize
.
width
)
?
(
scrollView
.
tz_
width
-
scrollView
.
contentSize
.
width
)
*
0
.
5
:
0
.
0
;
CGFloat
offsetY
=
(
scrollView
.
height
>
scrollView
.
contentSize
.
height
)
?
(
scrollView
.
height
-
scrollView
.
contentSize
.
height
)
*
0
.
5
:
0
.
0
;
CGFloat
offsetY
=
(
scrollView
.
tz_height
>
scrollView
.
contentSize
.
height
)
?
(
scrollView
.
tz_
height
-
scrollView
.
contentSize
.
height
)
*
0
.
5
:
0
.
0
;
self
.
imageContainerView
.
center
=
CGPointMake
(
scrollView
.
contentSize
.
width
*
0
.
5
+
offsetX
,
scrollView
.
contentSize
.
height
*
0
.
5
+
offsetY
);
self
.
imageContainerView
.
center
=
CGPointMake
(
scrollView
.
contentSize
.
width
*
0
.
5
+
offsetX
,
scrollView
.
contentSize
.
height
*
0
.
5
+
offsetY
);
}
}
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
View file @
017e1e86
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
[
super
viewWillAppear
:
animated
];
[
super
viewWillAppear
:
animated
];
[
self
.
navigationController
setNavigationBarHidden
:
YES
];
[
self
.
navigationController
setNavigationBarHidden
:
YES
];
if
(
iOS7Later
)
[
UIApplication
sharedApplication
].
statusBarHidden
=
YES
;
if
(
iOS7Later
)
[
UIApplication
sharedApplication
].
statusBarHidden
=
YES
;
if
(
_currentIndex
)
[
_collectionView
setContentOffset
:
CGPointMake
((
self
.
view
.
width
)
*
_currentIndex
,
0
)
animated
:
NO
];
if
(
_currentIndex
)
[
_collectionView
setContentOffset
:
CGPointMake
((
self
.
view
.
tz_
width
)
*
_currentIndex
,
0
)
animated
:
NO
];
[
self
refreshNaviBarAndBottomBarState
];
[
self
refreshNaviBarAndBottomBarState
];
}
}
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
}
}
-
(
void
)
configCustomNaviBar
{
-
(
void
)
configCustomNaviBar
{
_naviBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
self
.
view
.
width
,
64
)];
_naviBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
self
.
view
.
tz_
width
,
64
)];
_naviBar
.
backgroundColor
=
kNaviBarAndBottonBarBgColor
;
_naviBar
.
backgroundColor
=
kNaviBarAndBottonBarBgColor
;
_naviBar
.
alpha
=
0
.
7
;
_naviBar
.
alpha
=
0
.
7
;
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
[
_backButton
setTitleColor
:[
UIColor
whiteColor
]
forState
:
UIControlStateNormal
];
[
_backButton
setTitleColor
:[
UIColor
whiteColor
]
forState
:
UIControlStateNormal
];
[
_backButton
addTarget
:
self
action
:
@selector
(
back
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_backButton
addTarget
:
self
action
:
@selector
(
back
)
forControlEvents
:
UIControlEventTouchUpInside
];
_selectButton
=
[[
UIButton
alloc
]
initWithFrame
:
CGRectMake
(
self
.
view
.
width
-
54
,
10
,
42
,
42
)];
_selectButton
=
[[
UIButton
alloc
]
initWithFrame
:
CGRectMake
(
self
.
view
.
tz_
width
-
54
,
10
,
42
,
42
)];
[
_selectButton
setImage
:[
UIImage
imageNamed
:
@"photo_def_photoPickerVc"
]
forState
:
UIControlStateNormal
];
[
_selectButton
setImage
:[
UIImage
imageNamed
:
@"photo_def_photoPickerVc"
]
forState
:
UIControlStateNormal
];
[
_selectButton
setImage
:[
UIImage
imageNamed
:
@"photo_sel_photoPickerVc"
]
forState
:
UIControlStateSelected
];
[
_selectButton
setImage
:[
UIImage
imageNamed
:
@"photo_sel_photoPickerVc"
]
forState
:
UIControlStateSelected
];
[
_selectButton
addTarget
:
self
action
:
@selector
(
select
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_selectButton
addTarget
:
self
action
:
@selector
(
select
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
}
}
-
(
void
)
configBottomToolBar
{
-
(
void
)
configBottomToolBar
{
_toolBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
view
.
height
-
44
,
self
.
view
.
width
,
44
)];
_toolBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
view
.
tz_height
-
44
,
self
.
view
.
tz_
width
,
44
)];
CGFloat
rgb
=
34
/
255
.
0
;
CGFloat
rgb
=
34
/
255
.
0
;
_toolBar
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
_toolBar
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
_toolBar
.
alpha
=
0
.
7
;
_toolBar
.
alpha
=
0
.
7
;
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
}
}
_okButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_okButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_okButton
.
frame
=
CGRectMake
(
self
.
view
.
width
-
44
-
12
,
0
,
44
,
44
);
_okButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_
width
-
44
-
12
,
0
,
44
,
44
);
_okButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_okButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
[
_okButton
addTarget
:
self
action
:
@selector
(
okButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_okButton
addTarget
:
self
action
:
@selector
(
okButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_okButton
setTitle
:
@"确定"
forState
:
UIControlStateNormal
];
[
_okButton
setTitle
:
@"确定"
forState
:
UIControlStateNormal
];
...
@@ -119,7 +119,7 @@
...
@@ -119,7 +119,7 @@
_numberImageView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"photo_number_icon"
]];
_numberImageView
=
[[
UIImageView
alloc
]
initWithImage
:[
UIImage
imageNamed
:
@"photo_number_icon"
]];
_numberImageView
.
backgroundColor
=
[
UIColor
clearColor
];
_numberImageView
.
backgroundColor
=
[
UIColor
clearColor
];
_numberImageView
.
frame
=
CGRectMake
(
self
.
view
.
width
-
56
-
24
,
9
,
26
,
26
);
_numberImageView
.
frame
=
CGRectMake
(
self
.
view
.
tz_
width
-
56
-
24
,
9
,
26
,
26
);
_numberImageView
.
hidden
=
_selectedPhotoArr
.
count
<=
0
;
_numberImageView
.
hidden
=
_selectedPhotoArr
.
count
<=
0
;
_numberLable
=
[[
UILabel
alloc
]
init
];
_numberLable
=
[[
UILabel
alloc
]
init
];
...
@@ -142,10 +142,10 @@
...
@@ -142,10 +142,10 @@
-
(
void
)
configCollectionView
{
-
(
void
)
configCollectionView
{
UICollectionViewFlowLayout
*
layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
UICollectionViewFlowLayout
*
layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
layout
.
scrollDirection
=
UICollectionViewScrollDirectionHorizontal
;
layout
.
scrollDirection
=
UICollectionViewScrollDirectionHorizontal
;
layout
.
itemSize
=
CGSizeMake
(
self
.
view
.
width
,
self
.
view
.
height
);
layout
.
itemSize
=
CGSizeMake
(
self
.
view
.
tz_width
,
self
.
view
.
tz_
height
);
layout
.
minimumInteritemSpacing
=
0
;
layout
.
minimumInteritemSpacing
=
0
;
layout
.
minimumLineSpacing
=
0
;
layout
.
minimumLineSpacing
=
0
;
_collectionView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
self
.
view
.
width
,
self
.
view
.
height
)
collectionViewLayout
:
layout
];
_collectionView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
self
.
view
.
tz_width
,
self
.
view
.
tz_
height
)
collectionViewLayout
:
layout
];
_collectionView
.
backgroundColor
=
[
UIColor
blackColor
];
_collectionView
.
backgroundColor
=
[
UIColor
blackColor
];
_collectionView
.
dataSource
=
self
;
_collectionView
.
dataSource
=
self
;
_collectionView
.
delegate
=
self
;
_collectionView
.
delegate
=
self
;
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
_collectionView
.
scrollsToTop
=
NO
;
_collectionView
.
scrollsToTop
=
NO
;
_collectionView
.
showsHorizontalScrollIndicator
=
NO
;
_collectionView
.
showsHorizontalScrollIndicator
=
NO
;
_collectionView
.
contentOffset
=
CGPointMake
(
0
,
0
);
_collectionView
.
contentOffset
=
CGPointMake
(
0
,
0
);
_collectionView
.
contentSize
=
CGSizeMake
(
self
.
view
.
width
*
_photoArr
.
count
,
self
.
view
.
height
);
_collectionView
.
contentSize
=
CGSizeMake
(
self
.
view
.
tz_width
*
_photoArr
.
count
,
self
.
view
.
tz_
height
);
[
self
.
view
addSubview
:
_collectionView
];
[
self
.
view
addSubview
:
_collectionView
];
[
_collectionView
registerClass
:[
TZPhotoPreviewCell
class
]
forCellWithReuseIdentifier
:
@"TZPhotoPreviewCell"
];
[
_collectionView
registerClass
:[
TZPhotoPreviewCell
class
]
forCellWithReuseIdentifier
:
@"TZPhotoPreviewCell"
];
}
}
...
@@ -218,7 +218,7 @@
...
@@ -218,7 +218,7 @@
-
(
void
)
scrollViewDidScroll
:(
UIScrollView
*
)
scrollView
{
-
(
void
)
scrollViewDidScroll
:(
UIScrollView
*
)
scrollView
{
CGPoint
offSet
=
scrollView
.
contentOffset
;
CGPoint
offSet
=
scrollView
.
contentOffset
;
_currentIndex
=
offSet
.
x
/
self
.
view
.
width
;
_currentIndex
=
offSet
.
x
/
self
.
view
.
tz_
width
;
}
}
-
(
void
)
scrollViewDidEndDecelerating
:(
UIScrollView
*
)
scrollView
{
-
(
void
)
scrollViewDidEndDecelerating
:(
UIScrollView
*
)
scrollView
{
...
...
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
View file @
017e1e86
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
-
(
void
)
configPlayButton
{
-
(
void
)
configPlayButton
{
_playButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_playButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_playButton
.
frame
=
CGRectMake
(
0
,
64
,
self
.
view
.
width
,
self
.
view
.
height
-
64
-
44
);
_playButton
.
frame
=
CGRectMake
(
0
,
64
,
self
.
view
.
tz_width
,
self
.
view
.
tz_
height
-
64
-
44
);
[
_playButton
setImage
:[
UIImage
imageNamed
:
@"MMVideoPreviewPlay"
]
forState
:
UIControlStateNormal
];
[
_playButton
setImage
:[
UIImage
imageNamed
:
@"MMVideoPreviewPlay"
]
forState
:
UIControlStateNormal
];
[
_playButton
setImage
:[
UIImage
imageNamed
:
@"MMVideoPreviewPlayHL"
]
forState
:
UIControlStateHighlighted
];
[
_playButton
setImage
:[
UIImage
imageNamed
:
@"MMVideoPreviewPlayHL"
]
forState
:
UIControlStateHighlighted
];
[
_playButton
addTarget
:
self
action
:
@selector
(
playButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_playButton
addTarget
:
self
action
:
@selector
(
playButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
...
@@ -75,13 +75,13 @@
...
@@ -75,13 +75,13 @@
}
}
-
(
void
)
configBottomToolBar
{
-
(
void
)
configBottomToolBar
{
_toolBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
view
.
height
-
44
,
self
.
view
.
width
,
44
)];
_toolBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
self
.
view
.
tz_height
-
44
,
self
.
view
.
tz_
width
,
44
)];
CGFloat
rgb
=
34
/
255
.
0
;
CGFloat
rgb
=
34
/
255
.
0
;
_toolBar
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
_toolBar
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
_toolBar
.
alpha
=
0
.
7
;
_toolBar
.
alpha
=
0
.
7
;
_okButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_okButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_okButton
.
frame
=
CGRectMake
(
self
.
view
.
width
-
44
-
12
,
0
,
44
,
44
);
_okButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_
width
-
44
-
12
,
0
,
44
,
44
);
_okButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_okButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
[
_okButton
addTarget
:
self
action
:
@selector
(
okButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_okButton
addTarget
:
self
action
:
@selector
(
okButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_okButton
setTitle
:
@"确定"
forState
:
UIControlStateNormal
];
[
_okButton
setTitle
:
@"确定"
forState
:
UIControlStateNormal
];
...
...
TZImagePickerController/TZImagePickerController/UIView+Layout.h
View file @
017e1e86
...
@@ -14,16 +14,16 @@ typedef enum : NSUInteger {
...
@@ -14,16 +14,16 @@ typedef enum : NSUInteger {
@interface
UIView
(
Layout
)
@interface
UIView
(
Layout
)
@property
(
nonatomic
)
CGFloat
left
;
///< Shortcut for frame.origin.x.
@property
(
nonatomic
)
CGFloat
tz_
left
;
///< Shortcut for frame.origin.x.
@property
(
nonatomic
)
CGFloat
top
;
///< Shortcut for frame.origin.y
@property
(
nonatomic
)
CGFloat
t
z_t
op
;
///< Shortcut for frame.origin.y
@property
(
nonatomic
)
CGFloat
right
;
///< Shortcut for frame.origin.x + frame.size.width
@property
(
nonatomic
)
CGFloat
tz_
right
;
///< Shortcut for frame.origin.x + frame.size.width
@property
(
nonatomic
)
CGFloat
bottom
;
///< Shortcut for frame.origin.y + frame.size.height
@property
(
nonatomic
)
CGFloat
tz_
bottom
;
///< Shortcut for frame.origin.y + frame.size.height
@property
(
nonatomic
)
CGFloat
width
;
///< Shortcut for frame.size.width.
@property
(
nonatomic
)
CGFloat
tz_
width
;
///< Shortcut for frame.size.width.
@property
(
nonatomic
)
CGFloat
height
;
///< Shortcut for frame.size.height.
@property
(
nonatomic
)
CGFloat
tz_
height
;
///< Shortcut for frame.size.height.
@property
(
nonatomic
)
CGFloat
centerX
;
///< Shortcut for center.x
@property
(
nonatomic
)
CGFloat
tz_
centerX
;
///< Shortcut for center.x
@property
(
nonatomic
)
CGFloat
centerY
;
///< Shortcut for center.y
@property
(
nonatomic
)
CGFloat
tz_
centerY
;
///< Shortcut for center.y
@property
(
nonatomic
)
CGPoint
origin
;
///< Shortcut for frame.origin.
@property
(
nonatomic
)
CGPoint
tz_
origin
;
///< Shortcut for frame.origin.
@property
(
nonatomic
)
CGSize
size
;
///< Shortcut for frame.size.
@property
(
nonatomic
)
CGSize
tz_
size
;
///< Shortcut for frame.size.
+
(
void
)
showOscillatoryAnimationWithLayer
:(
CALayer
*
)
layer
type
:(
TZOscillatoryAnimationType
)
type
;
+
(
void
)
showOscillatoryAnimationWithLayer
:(
CALayer
*
)
layer
type
:(
TZOscillatoryAnimationType
)
type
;
...
...
TZImagePickerController/TZImagePickerController/UIView+Layout.m
View file @
017e1e86
...
@@ -9,97 +9,97 @@
...
@@ -9,97 +9,97 @@
@implementation
UIView
(
Layout
)
@implementation
UIView
(
Layout
)
-
(
CGFloat
)
left
{
-
(
CGFloat
)
tz_
left
{
return
self
.
frame
.
origin
.
x
;
return
self
.
frame
.
origin
.
x
;
}
}
-
(
void
)
set
L
eft
:(
CGFloat
)
x
{
-
(
void
)
set
Tz_l
eft
:(
CGFloat
)
x
{
CGRect
frame
=
self
.
frame
;
CGRect
frame
=
self
.
frame
;
frame
.
origin
.
x
=
x
;
frame
.
origin
.
x
=
x
;
self
.
frame
=
frame
;
self
.
frame
=
frame
;
}
}
-
(
CGFloat
)
top
{
-
(
CGFloat
)
t
z_t
op
{
return
self
.
frame
.
origin
.
y
;
return
self
.
frame
.
origin
.
y
;
}
}
-
(
void
)
setTop
:(
CGFloat
)
y
{
-
(
void
)
setT
z_t
op
:(
CGFloat
)
y
{
CGRect
frame
=
self
.
frame
;
CGRect
frame
=
self
.
frame
;
frame
.
origin
.
y
=
y
;
frame
.
origin
.
y
=
y
;
self
.
frame
=
frame
;
self
.
frame
=
frame
;
}
}
-
(
CGFloat
)
right
{
-
(
CGFloat
)
tz_
right
{
return
self
.
frame
.
origin
.
x
+
self
.
frame
.
size
.
width
;
return
self
.
frame
.
origin
.
x
+
self
.
frame
.
size
.
width
;
}
}
-
(
void
)
set
R
ight
:(
CGFloat
)
right
{
-
(
void
)
set
Tz_r
ight
:(
CGFloat
)
right
{
CGRect
frame
=
self
.
frame
;
CGRect
frame
=
self
.
frame
;
frame
.
origin
.
x
=
right
-
frame
.
size
.
width
;
frame
.
origin
.
x
=
right
-
frame
.
size
.
width
;
self
.
frame
=
frame
;
self
.
frame
=
frame
;
}
}
-
(
CGFloat
)
bottom
{
-
(
CGFloat
)
tz_
bottom
{
return
self
.
frame
.
origin
.
y
+
self
.
frame
.
size
.
height
;
return
self
.
frame
.
origin
.
y
+
self
.
frame
.
size
.
height
;
}
}
-
(
void
)
set
B
ottom
:(
CGFloat
)
bottom
{
-
(
void
)
set
Tz_b
ottom
:(
CGFloat
)
bottom
{
CGRect
frame
=
self
.
frame
;
CGRect
frame
=
self
.
frame
;
frame
.
origin
.
y
=
bottom
-
frame
.
size
.
height
;
frame
.
origin
.
y
=
bottom
-
frame
.
size
.
height
;
self
.
frame
=
frame
;
self
.
frame
=
frame
;
}
}
-
(
CGFloat
)
width
{
-
(
CGFloat
)
tz_
width
{
return
self
.
frame
.
size
.
width
;
return
self
.
frame
.
size
.
width
;
}
}
-
(
void
)
set
W
idth
:(
CGFloat
)
width
{
-
(
void
)
set
Tz_w
idth
:(
CGFloat
)
width
{
CGRect
frame
=
self
.
frame
;
CGRect
frame
=
self
.
frame
;
frame
.
size
.
width
=
width
;
frame
.
size
.
width
=
width
;
self
.
frame
=
frame
;
self
.
frame
=
frame
;
}
}
-
(
CGFloat
)
height
{
-
(
CGFloat
)
tz_
height
{
return
self
.
frame
.
size
.
height
;
return
self
.
frame
.
size
.
height
;
}
}
-
(
void
)
set
H
eight
:(
CGFloat
)
height
{
-
(
void
)
set
Tz_h
eight
:(
CGFloat
)
height
{
CGRect
frame
=
self
.
frame
;
CGRect
frame
=
self
.
frame
;
frame
.
size
.
height
=
height
;
frame
.
size
.
height
=
height
;
self
.
frame
=
frame
;
self
.
frame
=
frame
;
}
}
-
(
CGFloat
)
centerX
{
-
(
CGFloat
)
tz_
centerX
{
return
self
.
center
.
x
;
return
self
.
center
.
x
;
}
}
-
(
void
)
set
C
enterX
:(
CGFloat
)
centerX
{
-
(
void
)
set
Tz_c
enterX
:(
CGFloat
)
centerX
{
self
.
center
=
CGPointMake
(
centerX
,
self
.
center
.
y
);
self
.
center
=
CGPointMake
(
centerX
,
self
.
center
.
y
);
}
}
-
(
CGFloat
)
centerY
{
-
(
CGFloat
)
tz_
centerY
{
return
self
.
center
.
y
;
return
self
.
center
.
y
;
}
}
-
(
void
)
set
C
enterY
:(
CGFloat
)
centerY
{
-
(
void
)
set
Tz_c
enterY
:(
CGFloat
)
centerY
{
self
.
center
=
CGPointMake
(
self
.
center
.
x
,
centerY
);
self
.
center
=
CGPointMake
(
self
.
center
.
x
,
centerY
);
}
}
-
(
CGPoint
)
origin
{
-
(
CGPoint
)
tz_
origin
{
return
self
.
frame
.
origin
;
return
self
.
frame
.
origin
;
}
}
-
(
void
)
set
O
rigin
:(
CGPoint
)
origin
{
-
(
void
)
set
Tz_o
rigin
:(
CGPoint
)
origin
{
CGRect
frame
=
self
.
frame
;
CGRect
frame
=
self
.
frame
;
frame
.
origin
=
origin
;
frame
.
origin
=
origin
;
self
.
frame
=
frame
;
self
.
frame
=
frame
;
}
}
-
(
CGSize
)
size
{
-
(
CGSize
)
tz_
size
{
return
self
.
frame
.
size
;
return
self
.
frame
.
size
;
}
}
-
(
void
)
set
S
ize
:(
CGSize
)
size
{
-
(
void
)
set
Tz_s
ize
:(
CGSize
)
size
{
CGRect
frame
=
self
.
frame
;
CGRect
frame
=
self
.
frame
;
frame
.
size
=
size
;
frame
.
size
=
size
;
self
.
frame
=
frame
;
self
.
frame
=
frame
;
...
...
TZImagePickerController/ViewController.m
View file @
017e1e86
...
@@ -34,11 +34,11 @@
...
@@ -34,11 +34,11 @@
-
(
void
)
configCollectionView
{
-
(
void
)
configCollectionView
{
UICollectionViewFlowLayout
*
layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
UICollectionViewFlowLayout
*
layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
_margin
=
4
;
_margin
=
4
;
_itemWH
=
(
self
.
view
.
width
-
2
*
_margin
-
4
)
/
3
-
_margin
;
_itemWH
=
(
self
.
view
.
tz_
width
-
2
*
_margin
-
4
)
/
3
-
_margin
;
layout
.
itemSize
=
CGSizeMake
(
_itemWH
,
_itemWH
);
layout
.
itemSize
=
CGSizeMake
(
_itemWH
,
_itemWH
);
layout
.
minimumInteritemSpacing
=
_margin
;
layout
.
minimumInteritemSpacing
=
_margin
;
layout
.
minimumLineSpacing
=
_margin
;
layout
.
minimumLineSpacing
=
_margin
;
_collectionView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectMake
(
_margin
,
120
,
self
.
view
.
width
-
2
*
_margin
,
400
)
collectionViewLayout
:
layout
];
_collectionView
=
[[
UICollectionView
alloc
]
initWithFrame
:
CGRectMake
(
_margin
,
120
,
self
.
view
.
tz_
width
-
2
*
_margin
,
400
)
collectionViewLayout
:
layout
];
CGFloat
rgb
=
244
/
255
.
0
;
CGFloat
rgb
=
244
/
255
.
0
;
_collectionView
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
_collectionView
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
_collectionView
.
contentInset
=
UIEdgeInsetsMake
(
4
,
0
,
0
,
2
);
_collectionView
.
contentInset
=
UIEdgeInsetsMake
(
4
,
0
,
0
,
2
);
...
...
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