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
13a132fa
Commit
13a132fa
authored
Aug 30, 2017
by
yuzheng.tz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
如果有就取localizedInfoDictionary
parent
83892476
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+6
-2
No files found.
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
13a132fa
...
...
@@ -156,8 +156,12 @@
_tipLabel
.
numberOfLines
=
0
;
_tipLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_tipLabel
.
textColor
=
[
UIColor
blackColor
];
NSString
*
appName
=
[[
NSBundle
mainBundle
].
infoDictionary
valueForKey
:
@"CFBundleDisplayName"
];
if
(
!
appName
)
appName
=
[[
NSBundle
mainBundle
].
infoDictionary
valueForKey
:
@"CFBundleName"
];
NSDictionary
*
infoDict
=
[
NSBundle
mainBundle
].
localizedInfoDictionary
;
if
(
!
infoDict
)
{
infoDict
=
[
NSBundle
mainBundle
].
infoDictionary
;
}
NSString
*
appName
=
[
infoDict
valueForKey
:
@"CFBundleDisplayName"
];
if
(
!
appName
)
appName
=
[
infoDict
valueForKey
:
@"CFBundleName"
];
NSString
*
tipText
=
[
NSString
stringWithFormat
:[
NSBundle
tz_localizedStringForKey
:
@"Allow %@ to access your album in
\"
Settings -> Privacy -> Photos
\"
"
],
appName
];
_tipLabel
.
text
=
tipText
;
[
self
.
view
addSubview
:
_tipLabel
];
...
...
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