码迷,mamicode.com
首页 >  
搜索关键字:weak reference    ( 6649个结果)
Linux下编译C代码,出现tan函数报错的情况
undefined reference to `tan'但是已经包含了头文件 了,可还是报错,说是找不到tan这个问题的原因不是很清楚, 但是网上给出的方案,就是编译的时候 加上参数 -lm有说l表示Lib ,m表示 math.h ,*********************************...
分类:系统相关   时间:2014-07-16 21:54:53    阅读次数:240
Xcode中 Object-C中编译ARC配置
Xcode4.2(iOS 5)以后启用了ARC(Automatic Reference Countion)技术(即内存自动管理机制)1、需要iOS5才支持;2、很多引用的类库暂时还不支持.麻烦的是对大多数第三方库需要加禁用arc的编译flag,因为大多都因为兼容性还在使用手动内存管理。虽然4.2以后...
分类:其他好文   时间:2014-07-16 21:34:59    阅读次数:218
iOS.BackgroundTask
Background Task 的运行时间在iOS 6及以前有大约10分钟左右,在iOS 7中有180秒。Reference:1. Multitasking in iOS 7http://www.slideshare.net/mremond/multitasking-in-ios-72. Backg...
分类:移动开发   时间:2014-07-16 20:50:14    阅读次数:190
简单计算器的设计
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *show;@end@implementation ViewController - (voi...
分类:其他好文   时间:2014-07-16 20:41:43    阅读次数:186
利用xcode6做出牛的一逼的计算器
1、利用xcode6控件搭成计算器界面2、程序#import "ViewController.h"@interface ViewController (){ float result; int i;}@property (weak, nonatomic) IBOutlet UILabel *lab....
分类:其他好文   时间:2014-07-16 20:31:06    阅读次数:334
erlang自定义数据类型
Erlang系统自带的基础数据类型有:atom、tuple、list、binary、pid、float、number、port、reference、record。用户可以通过通过命令type来自定义数据类型,实现方法:-type device() :: atom() | pid().-type pr...
分类:其他好文   时间:2014-07-11 23:26:47    阅读次数:507
WebSessionStore: Could not obtain reference to HttpContext
IBatis.net在多线程中报错“WebSessionStore: Could not obtain reference to HttpContext”分析:因为ibatis的ISqlMapSession是存储在Http.Request.Items上的,在你新开的线程里是不能操作IIS的上的线程的...
分类:Web程序   时间:2014-07-11 22:52:37    阅读次数:331
linux下开发,解决cocos2d-x中编译出现的一个小问题, undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
解决cocos2d-x中编译出现的一个小问题 对于cocos2d-x 2.×中编译中,若头文件中引入了#include "cocos-ext.h",在进行C++编译的时候会遇到如下错误: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'/lib/x86_64-linux-gnu/libpthread.so.0...
分类:系统相关   时间:2014-07-10 21:27:02    阅读次数:469
iOS 根据文本内容为TextView动态定义高度
解决方案: 1.定义一个textview,在storyboard中设定constraints。 2.将高度的constraint定义到头文件中:(直接拖拽) @property (weak, nonatomic) IBOutlet NSLayoutConstraint *textviewHeightConstraint; 3.待在实现文件中为textview加载了内容之后,获取文本高度,为...
分类:移动开发   时间:2014-07-10 20:56:49    阅读次数:237
vi同类品
nvi更纯正,接近原始的vicommand argument-F don't copy whole file, may faster-S securehelp (quick reference):exusage:viusageinit/etc/vi.exrc => ~/.nexrc or ~/.ex...
分类:其他好文   时间:2014-07-10 15:54:09    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!