
OC&&Swift混合开发
IOS_Mainstay
这个作者很懒,什么都没留下…
展开
-
OC 与Swift混合开发之相互调用
首先在项目中,为了保障工作的稳定性,使用混合式开发室最好的选择(前提是自己能够看得懂自己写的代码)。一、首先说一下调用的问题:OC->Swift(OC调用Swift) 首先配置一下环境:如图 1、Build Settings->Packaging->Defines Module 设置为 Yes 2、在修改在 build setting 中的 Product Module原创 2016-07-26 16:57:54 · 5453 阅读 · 0 评论 -
微信登录
首先得获取kWeiXinAppSecret和kWeiXinAppId两个参数; 这两个参数都是在微信里面有体现的; 在项目中导入依赖库: 添加iOS9 URL Schemes. 添加URL Types Appdelegate部分代码如下: 导入类#import “WXApi.h” 导入类#import “WXApiHan.h” 挂上代理:WXApiDelegate- (BOOL)原创 2016-07-21 16:14:29 · 3896 阅读 · 0 评论 -
iOS值打包上线AppStore发的邮件
打包上传项目的时候,发过来的邮件如下: Dear developer,We have discovered one or more issues with your recent delivery for “项目名称”. To process your delivery, the following issues must be corrected:Invalid Swift Support -原创 2016-08-15 12:34:29 · 2185 阅读 · 0 评论 -
iOS 使用AFNetworking遇到异常 Request failed: unacceptable content-type: text/html
iOS 使用AFNetworking遇到错误 Request failed: unacceptable content-type: text/html错误日志:Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/html...转载 2018-02-12 12:53:02 · 769 阅读 · 0 评论