`
linwwwei
  • 浏览: 224588 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
一个旧工程添加一个Target后,发现断点不起作用,最后发现Target -> Build Setting,Generate Debug Symbols = yes解决了问题,更多相关内容以后再研究。
打开终端,键入以下命令: sudo rm -rf /Applications/*.appdownload 重启App Store
#import <UIKit/UIKit.h>    @interface UIDevice (Info)    + (NSString *) device;               //设备类型(x86_64 iPod5,1)  + (NSString *) deviceModel;          //设备模式(iPad iPod iPhone)  + (NSString *) osVersion;            //系统版本  + (NSString *) os;                   //平台  + (NSString *) car ...
原文地址:http://ff20081528.iteye.com/blog/1670433 1:使用block时,如果block内部需要访问self的方法、属性、或者实例变量应当使用weakself 2:如果block内需要多次访问self,则需使用strongself 3:如果在block内部存在多线程访问self,需要使用strongself 4:block本身不存在多线程,block执行是否是多线程,取决于当前的持有者是否以多线程的方式调用它。
1.安装Xcode,不说明,直接点击.dmg文件 2.安装模拟器和components    在安装好xcode后,拷贝你所有到组件(包括模拟器,说明文档,命令工具)到     /Users/本机用户名/Library/Caches/com.apple.dt.Xcode/Downloads/ 3.安装文档 启动Xcode,等待components安装完成后,修改preferences->Downloads,点击iOS7 doc set和Xcode5 doc set的下载按钮,由于此时已经下载到本地,所以会直接安装。 Xcode模拟器路径为://User/***/Library/Appli ...
var intValue = -10 //绝对值, 10 abs(intValue) //移动,20 advance(intValue, 30) //对齐,4 alignof(Float) //对齐,8 alignofValue(intValue) //断言,如果条件不成立,抛出异常并打印信息 assert(intValue < 0, "intValue小于0", file: "iOS_Playground", line: 10) assert(intValue < 0, "intValue小于0...") //打印ASCI ...
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView { NSMutableArray *arr = [[[NSMutableArray alloc] initWithCapacity:0] autorelease]; [arr addObject:@"{search}"];//等价于[arr addObject:UITableViewIndexSearch]; return arr; }
AudioStream: http://developer.apple.com/library/ios/#documentation/MusicAudio/Reference/AudioStreamReference/Reference/reference.html AudioQueue:  http://developer.apple.com/library/ios/#documentation/MusicAudio/Conceptual/AudioQueueProgrammingGuide/Introduction/Introduction.html CFNetwork:    http:/ ...
If you have tried to send any information using a GET web request, you would have come cross an annoying problem, That annoying problem is making sure that the URL is corrently encoded.   The issue is that by default most of these methods leave characters such as & = ? within a URL, as they are ...
http://www.cocoachina.com/iphonedev/toolthain/2012/1212/5308.html 收藏。iOS News Reader开源项目 XCode 4 的调试定位技巧 http://www.cocoachina.com/macdev/tips/2012/1120/5136.html
1. 模拟器网速调整: 限制时输入下面两行,根据需要修改下面的数字: sudo ipfw pipe 1 config bw 350kbit/s plr 0.05 delay 10000ms; sudo ipfw add pipe 1 dst-port http 不想再去限制网速是,输入下面的命令行: sudo ipfw flush 1.2 mac下限制网速: Advanced OS X users know that Darwin comes with ipfw, which can be used to set up a custom firewall. This same service ...
最近用了下uiwebview,说实话真不错。至少在ui表现方面,使用html写界面可以省去很多功夫。但是uiwebview其实还是存在着很多问题的。一个最关键的问题就是对https双向(单向)认证的支持。 其实看看api说明基本已经明白双向的https是不可行的了,那么单向又如何呢?答案是可行,但有问题。 在进行单向认证的过程中,uiwebview其实还做了一步证书的认证,就是匹配证书中的域与当前访问的域名是否相同,不相同则拒绝。这就使得用uiwebview访问https://alipay.com和https://www.alipay.com会得到两个不同的结果,而如何才能不进行这一认证,单 ...
说明 正则表达式 网址(URL) [a-zA-z]+://[^\s]* IP地址(IP Address) ((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?) 电子邮件(Email) \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* QQ号码 [1-9]\d{4,} HTML标记(包含内容或自闭合) <(.*)(.*)>.*<\/\1>|<(.*) \/> 密码(由数字/大写字母/小写字母/标点符号组成,四种都必有,8位以上) (?=^.{8,} ...
cmath库函数列表: using ::abs; //绝对值   using ::acos; //反余弦   using ::acosf; //反余弦   using ::acosl; //反余弦   using ::asin; //反正弦   using ::asinf; //反正弦   using ::asinl; //反正弦   using ::atan; //反正切   using ::atan2; //y/x ...
iphone中结束电话后返回自己的应用 大家想不想在自己的应用中拨打电话呀?打电话可以用openURL:这个API, 如:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://10086"]];但是当电话结束后,返回的是系统的拨打电话界面,如何才能返回自己的应用呢?这儿有两种 方法与大家分享。 第一种是用UIWebView加载电话,这种是合法的,可以上App Store的。 代码如下: // assuming you have an ivar to store a we ...
Global site tag (gtag.js) - Google Analytics