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
b8c71c8e
Commit
b8c71c8e
authored
Aug 27, 2019
by
yuzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: enhance backBarButtonItem, Adapt iOS13
parent
11860af7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+7
-1
TZImagePickerController/ViewController.m
TZImagePickerController/ViewController.m
+2
-0
No files found.
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
b8c71c8e
...
...
@@ -90,7 +90,13 @@ static CGFloat itemMargin = 5;
tzImagePickerVc
.
navLeftBarButtonSettingBlock
(
leftButton
);
self
.
navigationItem
.
leftBarButtonItem
=
[[
UIBarButtonItem
alloc
]
initWithCustomView
:
leftButton
];
}
else
if
(
tzImagePickerVc
.
childViewControllers
.
count
)
{
[
tzImagePickerVc
.
childViewControllers
firstObject
].
navigationItem
.
backBarButtonItem
=
[[
UIBarButtonItem
alloc
]
initWithTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Back"
]
style
:
UIBarButtonItemStylePlain
target
:
nil
action
:
nil
];
UIBarButtonItem
*
backItem
=
[[
UIBarButtonItem
alloc
]
initWithTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Back"
]
style
:
UIBarButtonItemStylePlain
target
:
nil
action
:
nil
];
backItem
.
tintColor
=
tzImagePickerVc
.
barItemTextColor
;
NSMutableDictionary
*
textAttrs
=
[
NSMutableDictionary
dictionary
];
textAttrs
[
NSForegroundColorAttributeName
]
=
tzImagePickerVc
.
barItemTextColor
;
textAttrs
[
NSFontAttributeName
]
=
tzImagePickerVc
.
barItemTextFont
;
[
backItem
setTitleTextAttributes
:
textAttrs
forState
:
UIControlStateNormal
];
[
tzImagePickerVc
.
childViewControllers
firstObject
].
navigationItem
.
backBarButtonItem
=
backItem
;
}
_showTakePhotoBtn
=
_model
.
isCameraRoll
&&
((
tzImagePickerVc
.
allowTakePicture
&&
tzImagePickerVc
.
allowPickingImage
)
||
(
tzImagePickerVc
.
allowTakeVideo
&&
tzImagePickerVc
.
allowPickingVideo
));
// [self resetCachedAssets];
...
...
TZImagePickerController/ViewController.m
View file @
b8c71c8e
...
...
@@ -257,6 +257,8 @@
return
;
}
TZImagePickerController
*
imagePickerVc
=
[[
TZImagePickerController
alloc
]
initWithMaxImagesCount
:
self
.
maxCountTF
.
text
.
integerValue
columnNumber
:
self
.
columnNumberTF
.
text
.
integerValue
delegate
:
self
pushPhotoPickerVc
:
YES
];
// imagePickerVc.barItemTextColor = [UIColor redColor];
// imagePickerVc.naviBgColor = [UIColor whiteColor];
// imagePickerVc.navigationBar.translucent = NO;
#pragma mark - 五类个性化设置,这些参数都可以不传,此时会走默认设置
...
...
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