摘要: 当在developer.apple.com更新Provisioning Profile(添加新机器)后,下载到本地,双击载入xcode,运行时没问题。但如果用adhoc发布,可能会发现重复的provisioning Profile且不知道哪个是最新的。解决方案:对Provisioning Profi... 阅读全文
posted @ 2014-07-14 14:59 Gukw 阅读(1153) 评论(0) 推荐(0) 编辑
摘要: iPhone机型越来越多,指令集,系统版本在新发布app的时候都需要考虑支持到哪种程度。这里简单总结一下xcode5时代Architectures方面的配置。 阅读全文
posted @ 2014-01-22 21:12 Gukw 阅读(6691) 评论(2) 推荐(0) 编辑
摘要: 简单写了下,只测试了chrome,道理很简单,其他浏览器自行扩充。 阅读全文
posted @ 2013-05-15 19:44 Gukw 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: 当在.pch引入一些.h文件,偶尔会出现xcode里提示里面某个.h文件定义的key找不到声明。解决方法:在pch里删掉一个.h再添加回去即可。参考:http://stackoverflow.com/questions/12150024/xcode-use-of-undeclared-identifier-errors-compiles-runs-just-fine 阅读全文
posted @ 2013-05-13 16:42 Gukw 阅读(7613) 评论(0) 推荐(0) 编辑
摘要: ios,the feedback service. 定时去连接苹果呃该服务,它会返回相关的无效的device_token. 阅读全文
posted @ 2013-04-07 20:07 Gukw 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 应该是指传说中的ad-hoc方式。1,将即将进行远程安装的机器的udid添加的https://developer.apple.com/的devices里,并将其添加到development provisioning,并更新到本地xcode2, 选择该development provisioning,在菜单栏product里选择build for archiving,成功后,选择archive,这时会在organizer的archives里生成一个新的版本。3,在organizer选中该版本,点击distribute4,在弹出框内选中 save for enterprise or ad-hoc 阅读全文
posted @ 2013-02-27 22:28 Gukw 阅读(4146) 评论(7) 推荐(0) 编辑
摘要: 转载自:http://zhang8mss.blog.163.com/blog/static/1104637562012260250222/javapns地址:http://code.google.com/p/javapns/生成p12需要3个文件:1,本机在https://developer.apple.com/ios/manage/certificates/team/index.action生成certifacates时上传的本机证书:CertificateSigningRequest.certSigningRequest2,从https://developer.apple.com/ios/ 阅读全文
posted @ 2013-02-20 12:10 Gukw 阅读(2437) 评论(1) 推荐(0) 编辑
摘要: 老是遇到这个需求,还是记录一下,以后直接copy吧。function getParam(url, name){ var reg = new RegExp("(^|\\?|&|#)"+ name +"=([^&]*)(&|$)", "i"); var oMatch = url.match(reg); var result = ""; if(oMatch){ result = decodeURIComponent(oMatch[2]); } return result; } 阅读全文
posted @ 2012-09-12 17:17 Gukw 阅读(193) 评论(0) 推荐(0) 编辑
摘要: UIscrollView 实现图片放大缩小拖拽等动作。 阅读全文
posted @ 2012-07-20 22:58 Gukw 阅读(19442) 评论(2) 推荐(1) 编辑
摘要: 如果[a pushViewController:b animated:YES]后,在b中立即执行 [b popViewControllerAnimated:YES]会导致程序crash;因为a push b 需要时间,因此b必须要在动画结束后才能pop.结果方法:把b pop从viewDidLoad转移到viewDidAppear中执行。 阅读全文
posted @ 2012-07-05 11:27 Gukw 阅读(1500) 评论(0) 推荐(0) 编辑