会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
madarax
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2017年5月18日
iOS-Swift协议中关联类型的使用
摘要: Associated Type :关联类型 有时候会遇到这样的需求,继承自某一协议的类中需要保证代理方法处理的参数类型保持一致,这就需要使用关联类型来做到这一点 协议声明: protocol ATypeDelegate { associatedtype T func printContent( ct
阅读全文
posted @ 2017-05-18 15:48 madarax
阅读(639)
评论(0)
推荐(0)
2017年5月15日
iOS - 沙盒?Bundle?
摘要: Pay attention please!沙盒和Bundle是不一样滴。 沙盒路径:NSHomeDirectory() -> String Bundle路径: Bundle.main.bundlePath -> String // 控制台打印信息: /var/containers/Bundle/Ap
阅读全文
posted @ 2017-05-15 18:51 madarax
阅读(408)
评论(0)
推荐(0)
2017年5月2日
iOS 导航控制器A->B push过程中B显示A内容
摘要: 原因是B控制器view没有设置背景色,这个时候,B的背景色默认是透明的,并且push过程中有动画的执行过程,所以会在B看到A的内容
阅读全文
posted @ 2017-05-02 11:29 madarax
阅读(272)
评论(0)
推荐(0)
iOS 审核 reject 总结
摘要: 一、iOS 系统的迭代 1、iOS 7,iOS 9 ,iOS 10,这三次新版本的发布都伴随了较大的改变,需要开发者格外关注; 二、reject 原因 1、iTunes网站上传截图与提交的项目显示内容不一致; 2、App标题信息过长,不可以是一句话; 三、解决方法 1、导出ipa包后安装到测试机上再
阅读全文
posted @ 2017-05-02 10:06 madarax
阅读(183)
评论(0)
推荐(0)
2017年4月1日
Invalid Region <center:+114.18215500, +22.29864800 span:+2.00000000, +2.00000000>
摘要: 问题:不可用的区域描述 结构:app崩溃 原因:纬度数值超出范围 解决方案: 纬度范围:[0 - 90] 经度范围:[0 - 180]
阅读全文
posted @ 2017-04-01 14:04 madarax
阅读(200)
评论(0)
推荐(0)
2017年3月28日
iOS 之 pt、ppi、px、
摘要: iOS尺寸单位pt、ppi与px之间换算关系 单位: pt:iOS开发单位,即point,绝对长度,1pt=1/72英寸。 ppi:Pixels Per Inch,即每英寸所拥有的像素数目,屏幕像素密度。 公式: 举例: 比如iphone3gs的像素分辨率是480px×320px,按下图计算即表示在
阅读全文
posted @ 2017-03-28 13:36 madarax
阅读(690)
评论(0)
推荐(0)
2017年3月27日
Swift2.0 -> Swift3.0 改动集锦
摘要: 1、可变参数篇 2.0时代 func change(a : Int){ a += 1 } 2.3时代 func change(inout a : Int){ a += 1 } 3.0时代 func change(a : inout Int){ a += 1 } 调用方法的时候: var testIn
阅读全文
posted @ 2017-03-27 18:01 madarax
阅读(128)
评论(0)
推荐(0)
2017年3月24日
'(QQApiObject!) -> SendMessageToQQReq' is not convertible to '(QQApiObject!) -> SendMessageToQQReq! 2017-03-24全网独家
摘要: 背景:项目环境从swift2.3 -> swift3.0 代码冲突 Xcode环境配置有问题。 解决方案:重新构建项目,移植代码,重新配置环境。
阅读全文
posted @ 2017-03-24 20:49 madarax
阅读(154)
评论(0)
推荐(0)
invalid image path - no image found at the path referenced under key 'CFBundleIcons' : 'AppIcon29x29'
摘要: 2017-03-24 打包上传报错 invalid image path - no image found at the path referenced under key 'CFBundleIcons' : 'AppIcon29x29' 解决方案:删除Assets.xcassets中AppIcon
阅读全文
posted @ 2017-03-24 20:46 madarax
阅读(813)
评论(0)
推荐(0)
http,https
摘要: 大神杰作 https://onevcat.com/2016/06/ios-10-ats/ 个人收获,iOS10环境下,AllowsArbitraryLoadsInWebContent在前,Allow Arbitrary Loads在后可以用,可以访问http。。。。
阅读全文
posted @ 2017-03-24 16:56 madarax
阅读(187)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告