代码改变世界

随笔档案-2016年01月

IOS Constraints自动布局适应不同尺寸

2016-01-19 14:13 by 一树一菩提, 543 阅读, 收藏,
摘要: 最近公司要开发新的功能迭代,就要开发新界面,适应各种尺寸的屏幕尺寸,这就要考虑到用自动布局了。Xcode的版本是7.2,已经从菜单栏的Editor中找不到Pin了,Xcode把自动布局都处理成xib下面的图标按钮了。亟待解决的问题是:我要设置tableViewCell在各屏幕的显示尤其是左右自动满足... 阅读全文

IOS App打包发布流程(公司账号)

2016-01-15 15:39 by 一树一菩提, 783 阅读, 收藏,
摘要: 公司开发的一款App开始以个人账号发布,后来迁移到公司账号。以公司的账号发布新的版本,就要重新创建密钥,ID等生成profile。流程如下:1.创建certification:从finder中打开应用程序打开密钥:创建完密钥,下载到本地。2.创建Identifier:push notificat... 阅读全文

IOS App发布问题:code signing is required for product type "Application" in SDK 'iOS 9.2'

2016-01-15 15:17 by 一树一菩提, 28953 阅读, 收藏,
摘要: 问题:code signing is required for product type "Application" in SDK 'iOS 9.2' 解决: 如果从ituns connect上download的profile,双击后project下的code signing还是没有profile, 阅读全文

IOS UIAlertView 和 UIActionSheet的区别

2016-01-14 12:00 by 一树一菩提, 253 阅读, 收藏,
摘要: UIAlertView 和 UIActionSheet的区别: 1.弹框位置不同: UIAlertView弹框显示在中间 UIActionSheet弹框显示在底端 2.是否可以实现文本框的输入(参考:http://www.ithao123.cn/content-9409772.html) UIAle 阅读全文

IOS中UIActionSheet使用方法详解

2016-01-14 11:40 by 一树一菩提, 916 阅读, 收藏,
摘要: 一、初始化方法- (instancetype)initWithTitle:(NSString*)title delegate:(id)delegate cancelButtonTitle:(NSString*)cancelButtonTitle destructiveButtonTitle:(NSS... 阅读全文

IOS 沙盒路径的机制

2016-01-11 12:22 by 一树一菩提, 228 阅读, 收藏,
摘要: 1.前往沙盒目录:在Finder上点->前往->前往文件夹,输入/Users/username/Library/Application Support/iPhone Simulator/ 前往2.沙盒结构:每个沙盒含有3个文件夹:Documents, Library 和 tmp。Documents:... 阅读全文