![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IOS
文章平均质量分 70
张瑞松
发表自己思考过的对人有益的东西不可盲目转载
展开
-
NSThread 和 NSTimer
在自己定义的线程中使用NSTimer,如果对线程了解的不够很容易导致timer要调用的函数无法调用。 在新的线程中使用NSTimer如下所示 - (IBAction)hehe:(id)sender { NSThread* thread = [[NSThread alloc] initWithTarget:self selector:@selector(timerS原创 2013-04-27 17:40:51 · 773 阅读 · 0 评论 -
IOS中arc的基础知识
旧工程配置arc方案:1,直接在targets->build phases中修改compiler Flags,是否支持arc。添加:-fobjc-arc,就可以让旧项目支持arc。如果想让原来支持arc的不使用arc则添加-fno-objc-arc2,因为在build phases中可以改变是否支持arc,所以应该在代码中添加判断是否支持arc,这样不管以后.m的arc是否转载 2013-04-17 14:37:03 · 474 阅读 · 0 评论 -
使自己的App可以到App Store上去评分
首先知道App Store上评论的链接地址是:itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=appID 以上连接可以直接粘走,只需将appID改为你自己的App的id(它就像身份证号一样对app做一个唯一标示)。你可以原创 2013-05-07 18:17:40 · 719 阅读 · 0 评论 -
UIImageView绕着一个点旋转
pointer = [[UIImageViewalloc] initWithImage: [UIImageimageNamed:@"poi.png"]]; pointer.frame = CGRectMake(73, 72, 6, 51); pointer.layer.anchorPoint =原创 2013-05-13 13:25:06 · 2131 阅读 · 0 评论 -
iOS中block作为一个函数的参数
我们首先设想有如下的一个头文件:@interface ViewController :UIViewController{ AAA *aaa;}假设在这个ViewController的viewDidLoad函数内有如下一段代码[aaa withBlock:^(NSString* error_code, NSError* error) {原创 2013-06-21 14:46:46 · 10654 阅读 · 0 评论