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
37d517d9
Commit
37d517d9
authored
Dec 27, 2016
by
Fnoz
Committed by
LuWeijun
Dec 27, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加“图片选择页面,可定制 naviBar 的标题、背景色样式”;
parent
115f4046
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
TZImagePickerController/TZImagePickerController/TZImagePickerController.h
...troller/TZImagePickerController/TZImagePickerController.h
+3
-0
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+24
-0
No files found.
TZImagePickerController/TZImagePickerController/TZImagePickerController.h
View file @
37d517d9
...
@@ -127,6 +127,9 @@
...
@@ -127,6 +127,9 @@
/// Appearance / 外观颜色 + 按钮文字
/// Appearance / 外观颜色 + 按钮文字
@property
(
nonatomic
,
strong
)
UIColor
*
oKButtonTitleColorNormal
;
@property
(
nonatomic
,
strong
)
UIColor
*
oKButtonTitleColorNormal
;
@property
(
nonatomic
,
strong
)
UIColor
*
oKButtonTitleColorDisabled
;
@property
(
nonatomic
,
strong
)
UIColor
*
oKButtonTitleColorDisabled
;
@property
(
nonatomic
,
strong
)
UIColor
*
naviBgColor
;
@property
(
nonatomic
,
strong
)
UIColor
*
naviTitleColor
;
@property
(
nonatomic
,
strong
)
UIFont
*
naviTitleFont
;
@property
(
nonatomic
,
strong
)
UIColor
*
barItemTextColor
;
@property
(
nonatomic
,
strong
)
UIColor
*
barItemTextColor
;
@property
(
nonatomic
,
strong
)
UIFont
*
barItemTextFont
;
@property
(
nonatomic
,
strong
)
UIFont
*
barItemTextFont
;
...
...
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
37d517d9
...
@@ -56,6 +56,28 @@
...
@@ -56,6 +56,28 @@
}
}
}
}
-
(
void
)
setNaviBgColor
:(
UIColor
*
)
naviBgColor
{
_naviBgColor
=
naviBgColor
;
self
.
navigationBar
.
barTintColor
=
naviBgColor
;
}
-
(
void
)
setNaviTitleColor
:(
UIColor
*
)
naviTitleColor
{
_naviTitleColor
=
naviTitleColor
;
[
self
configNaviTitleAppearance
];
}
-
(
void
)
setNaviTitleFont
:(
UIFont
*
)
naviTitleFont
{
_naviTitleFont
=
naviTitleFont
;
[
self
configNaviTitleAppearance
];
}
-
(
void
)
configNaviTitleAppearance
{
NSMutableDictionary
*
textAttrs
=
[
NSMutableDictionary
dictionary
];
textAttrs
[
NSForegroundColorAttributeName
]
=
self
.
naviTitleColor
;
textAttrs
[
NSFontAttributeName
]
=
self
.
naviTitleFont
;
self
.
navigationBar
.
titleTextAttributes
=
textAttrs
;
}
-
(
void
)
setBarItemTextFont
:(
UIFont
*
)
barItemTextFont
{
-
(
void
)
setBarItemTextFont
:(
UIFont
*
)
barItemTextFont
{
_barItemTextFont
=
barItemTextFont
;
_barItemTextFont
=
barItemTextFont
;
[
self
configBarButtonItemAppearance
];
[
self
configBarButtonItemAppearance
];
...
@@ -200,6 +222,8 @@
...
@@ -200,6 +222,8 @@
self
.
timeout
=
15
;
self
.
timeout
=
15
;
self
.
photoWidth
=
828
.
0
;
self
.
photoWidth
=
828
.
0
;
self
.
photoPreviewMaxWidth
=
600
;
self
.
photoPreviewMaxWidth
=
600
;
self
.
naviTitleColor
=
[
UIColor
whiteColor
];
self
.
naviTitleFont
=
[
UIFont
systemFontOfSize
:
17
];
self
.
barItemTextFont
=
[
UIFont
systemFontOfSize
:
15
];
self
.
barItemTextFont
=
[
UIFont
systemFontOfSize
:
15
];
self
.
barItemTextColor
=
[
UIColor
whiteColor
];
self
.
barItemTextColor
=
[
UIColor
whiteColor
];
self
.
allowPreview
=
YES
;
self
.
allowPreview
=
YES
;
...
...
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