![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
个人
文章平均质量分 52
VILLAGEFROG
这个作者很懒,什么都没留下…
展开
-
OC - 设置闹钟
设置一个Date, 然后打开一个Timer, timer=[[NSTimerscheduledTimerWithTimeInterval:1target:selfselector:@selector(timerRun)userInfo:nilrepeats:YES]retain];在这个函数中做相关的操作就可以。cancel时, [timer原创 2013-04-28 09:51:10 · 953 阅读 · 0 评论 -
iOS在UIButton中换行
在iOS6.0以上,可以设置UIButton.titleLable.lineBreakMode = NSLineBreakByWordWrapping;UIButton.titleLabel.text = @"This is \n two lines";并使用'\n'进行换行。但由于NSLineBreakMode是 NS_ENUM_AVAILABLE_IOS(6.0)的,也就是原创 2014-02-12 11:42:26 · 6633 阅读 · 0 评论 -
#ifdef __cplusplus 倒底是什么意思?
转载自:http://www.cnblogs.com/stonecrazyking/archive/2006/09/23/512552.html#ifdef __cplusplus 倒底是什么意思?时常在cpp的代码之中看到这样的代码:#ifdef __cplusplus extern "C" { #endif//一段代码#ifdef __cplusplus转载 2014-03-30 07:51:05 · 492 阅读 · 0 评论 -
链接
OSAtomic.h User-Space Referencehttps://developer.apple.com/library/mac/documentation/System/Reference/OSAtomic_header_reference/Reference/reference.html转载 2014-03-30 08:15:02 · 688 阅读 · 0 评论