您的位置:首页 > 其它

工程配置

2016-04-28 16:17 323 查看
Info.plist中

网络连接:

添加 NSAppTransportSecurity类型Dictionary;

在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES。

设置地理信息:

NSLocationAlwaysUsageDescription [Dictionary]

您的描述 [string]

NSLocationWhenInUseUsageDescription[Dictionary]

您的描述 [string]

设置应用名:

Bundle display name

语言地区:

Localization native development region China

(不是多语言版本的话)

另外若是要做到多语言且按钮即可切换 参考:

http://www.jianshu.com/p/ad975fa478e5

3DTouch的shortCut功能(静态添加):

UIApplicationShortcutItems [Array]

数组中 Item 皆为字典选项,

必填项(下面两个键值是必须设置的):

UIApplicationShortcutItemType 设置一个快捷通道类型的字符串

UIApplicationShortcutItemTitle 设置标签的标题

选填项(下面这些键值不是必须设置的):

UIApplicationShortcutItemSubtitle 设置标签的副标题

UIApplicationShortcutItemIconType 设置标签Icon类型

UIApplicationShortcutItemIconFile 设置标签的Icon文件

UIApplicationShortcutItemUserInfo 设置信息字典(用于传值)

需要全局宏定义或头文件时利用pch文件:

1、新建pch文件

2、build settings 查找 prefix header

设置路径:$(SRCROOT)/项目名/PrefixHeader.pch
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: