昨天把我的4S更新到iOS7.1,今天发下需要更新Xcode到5.1,发现打包项目Archive的时候,多了一堆警告和错误,很是郁闷。 郁闷没有用,作为一个合格的程序员,要学会淡定!看看警告和错误的大概意思,发下一起好像遇到过,就是编译参数加上了arm64。 我们选中我的TARGETS-->Build Settings,如图 原来在Xcode5.0.x的时候默认的Standard
architectures只有(arm7,armv7s),到5.1之后默认就带上arm64了。 由于很多第三方...
一、问题表现: 在MAC OSX(10.9.2)上安装了比较新的XCODE5.1 和COMMAND LINE TOOLS 在DELPHI XE5 UP2上放了一个按钮,输出到MAC OSX上,出现: Wrapper init failed: (null)查看了很多大侠的博客。二、问题的其他表现在Embarcadero的论坛上找到:原文位置:https://forums.embarcadero.com/thread.jspa?threadID=101749&tstart=0 What does this mean and how can I correct it?I started getting this error today an...
参考自http://blog.csdn.net/hbts_901111zb/article/details/76691900 项目中,主页面有很多输入字段,当由主页跳转到子页面, 将子页面的字段 set入localstorage中, 由于返回主页面不能将先前输入的字段刷新掉,所以必须要在子页面history.back()。 但由于ios和安卓机制不同,安卓会重新刷新主页面的ready, ios则不会。解决方案如下: 1 $(function () { 2var isPageHide = false; 3 window.addEventListener(‘p...
[root@testhost ~]# iostat-bash: iostat: command not foundIOSTAT 命令不可用,首先确认sysstat包是否安装,sysstat包中包括iostat,mpstat,sar,sa[root@testhost ~]#yum install -y sysstat安装完成后,再执行iostat命令。 解释:avg-cpu段:%user: 在用户级别运行所使用的CPU的百分比.%nice: nice操作所使用的CPU的百分比.%sys: 在系统级别(kernel)运行所使用CPU的百分比.%iowait: CPU等待硬件I/O时,所占用CPU百分比.%idle: CPU空...
weiwu[959:278023] -canOpenURL: failed for URL: "weixin://app/wx9517802466e40346/" - error: "This app is not allowed to query for scheme weixin"之后出现这个问题在info.plist添加如下信息即可。(LSApplicationQueriesSchemes) 原文:http://www.cnblogs.com/godlovexq/p/5230344.html
Ordinarily, overflow: hidden; on the body tag is sufficient to prevent scrolling a web page, if for instance you’re creating a drawer to hold content that will scroll separately. However, this doesn’t work in iOS6. The best I’ve come up with so far is to set position: fixed:body.lock-position {height: 100%;overflow: hidden;width: 100%;position: fixed;}原文:http://www.cnblogs.com/bluesky1024/p/...
问题描述当使用委托给一个元素添加click事件时,如果事件是委托到 document 或 body 上,并且委托的元素是默认不可点击的(如 div, span 等),此时 click 事件会失效。可以使用下面的代码在 iOS 中进行测试。<!DOCTYPE html>
<html>
<head> <meta charset="UTF-8"><meta name="viewport" content="width=device-width"><title>iOS click bug test</title><style>.container {}.target {display: block;text-align: center;ma...
今天做公司产品的时候遇到了如题问题,困扰我很长时间,用尽各种办法不能解决,究其原因不知为何,自定义cell低端有view划线的时候,划线一般的显示1像素,而贴着section的显示很少 顶多0.3像素,这个问题很头疼,后来 想到了一个非常好的办法解决: UIImageView *separatorLine = [[UIImageViewalloc] initWithFrame:CGRectMake(20.0f*SizeScaleX,
30*SizeScaleY -
1.0f, cell.frame.size.width,
1.0f)]; separatorLine.image = [[U...
[image resizableImageWithCapInsets:UIEdgeInsetMake(imageHeight * 0.5, imageWidth * 0.5,imageHeight * 0.5 -1, imageWidth * 0.5 - 1) resizingMode:UIIMageResizingModeTile];或[image stretchableImageWithLeftCapWidth:imageWidth * 0.5 topCapHeight:image * 0.5];或 点击图片,在右边直接设置水平和竖直拉伸可以给UIImage创建分类 原文:https://www.cnblogs.com/yintingting/p/12755710.html
Button 显示图片不正常的情况如下 为什么会这样了?明明都设置了好了。解决办法一 使用storyboard其实我们在使用Button设置图片的时候,最好将Button的type设置为custom,在storyboard中可以按照下图设置将system改为custom解决办法二 使用代码方法如下:[selfsetImage:[[UIImageimageNamed:emotion.png] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forState:UIControlStateNormal];这样就可以正常显示...
在项目中有时候会遇到Library not found for -lPods(这里的IPods指的是你具体的第三方库)的问题出现这个错误的原因是:xcode在编译的时候找不到这个库,从而导致项目无法编译! 这里给出几种解决办法:第一种: Search from ‘Library‘ from the Target Settings view and double-click to inspect the value of Library Search Paths There are two values listed $(inherited) and $(PROJECT_DIR)/Pods/build/Debug-iphoneos. De...
事件背景: 最近在做一个移动端业务的时候碰到一个bug,在ios上对body绑定click事实现事件代理冒泡至某些元素上尽然不生效。思考: 暂借助jquery展示下事件绑定代码,将所有标签含有data-tip属性的元素通过事件代理至body$(‘body‘).on(‘click‘,‘[data-tip]‘,function(e){console.log($(this.).attr(‘data-tip‘))
}) 这样做在android和pc上都可以正常实现,但是在ios上面对部分标签尽然不生效。比如 tr , s...
1、将Unit升级至4.6.x或5.0.x,将Vuforia差距升级到最新版本(vuforia-unity-mobile-android-ios-4-0-105 ) 2、平台Other Settings设置中将 Scripting Backend设置为:IL2CPP ,Architecture设置为:Universal 4.6及以后的版本才有。3、在Xcode的Build Settings中 将Architectures设置为Standard architecture,Valid Architectures设置为 armv7 armv7s arm64 4、Search Paths中加上libVuforia.a所在文件夹的Library Search Paths...
NSScanner: nil string argument NSScanner: nil string argumentlibc++abi.dylib: terminate_handler unexpectedly threw an exception这个错误多数都是由于空字符串引起的,请仔细检查,不行就看看下面的几个方法吧。对某一个空数组使用[array objectAtIndex: i ]方法,也出现这个错,不是报数组越界,说好的OC支持向空对象传递数据呢?把一个NSArray、NSDictionary对象赋值给一个NSMutableArray、NSMutableDictionary对象,然后...
运行提示找不到设备1) 查看itunes 的服务是否起动(Bonjour服务),测试。。。。。,如果还没连上 2)"D:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0\lib\aot\bin\iOSBin\idb.exe" -devices 看能不能找到设备,如果还找不到。复制:C:\Program Files (x86)\Common Files\Apple\Apple Application Support\SQLite3.dll到:D:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.6.0\li...