百度百科:http://baike.baidu.com/link?url=O0QvxbOY8SVBjrIl6nF6EvMHSslgcEIxfXSoty5SbkA7QjbWZjTWARzwTQsKKbSD5mlASljndZrqYjle_qwcmq#reference-[1]-4700690-wrap...
分类:
编程语言 时间:
2015-06-12 13:17:35
阅读次数:
133
设置时间和定闹钟练习: ? ViewController.h文件: #import <Cocoa/Cocoa.h> @interface ViewController : NSViewController - (IBAction)shezhijian:(id)sender; @property (weak) IBOutlet NSTextField *Song;...
分类:
其他好文 时间:
2015-06-11 23:23:33
阅读次数:
274
1.在 ARC 中,所有*outlet*属性都推荐使用 weak,这些 view 对象已经属于 View Controller 的 view hierarchy,不需要再次定义为 strong(ARC 中效果等同于 retain)。唯一应该使用 strong 的 outlet 是 File's Ow...
分类:
其他好文 时间:
2015-06-11 18:58:12
阅读次数:
96
今天再用一个android和php之间加密传输的问题,提示: ?Cannot make a static reference to the non-static method ...... ?解决方法:先实例化类,然后再调用。 如: MCryptAES srtaes = new MCryptAES();??...
分类:
其他好文 时间:
2015-06-11 17:15:33
阅读次数:
135
1.遇错./.libs/libgcj.so: undefined reference to `__cxa_call_unexpected'解决:d.错误码:"/.libs/libgcj.so: undefined reference to `__cxa_call_unexpected' collec...
分类:
其他好文 时间:
2015-06-10 20:58:08
阅读次数:
252
API接口文档。 https://developer.apple.com/library/mac/#documentation/Carbon/Reference/CoreText_Framework_Ref/_index.html CoreText 框架中最常用的几个类: CTFont CTFontCollection CTFontDescriptor CTF...
分类:
移动开发 时间:
2015-06-10 17:31:56
阅读次数:
227
众所周知,ObjectiveC的内存管理引用的一种叫做“引用计数“ (Reference Count)的操作方式,简单的理解就是系统为每一个创建出来的对象,(这里要注意,只是对象,NSObject的子类,基本类型没有‘引用计数’)记录一个引用计数,初始化这个对象的时候会调用alloc方法,系统在al...
分类:
其他好文 时间:
2015-06-09 21:37:28
阅读次数:
128
第一步://UserTableViewCell.h这里定义第一种Cell#import @interface UserTableViewCell : UITableViewCell@property (weak, nonatomic) IBOutlet UIImageView *userviewce...
分类:
移动开发 时间:
2015-06-09 16:51:59
阅读次数:
188
先声明一下,这里的内容大多是《C++编程思想》中的内容,我最近在学习C++,觉得里面的很多话不错,另外例子也都自己实验了一番,有些现象很有趣,希望与大家分享。?引用(reference)(&)就像能自动地被编译器间接引用的常量型指针。#include
using namespace std; int y;
int& r = y;//当一个引用被创建的时候,它必须被初始化为...
分类:
编程语言 时间:
2015-06-09 10:00:12
阅读次数:
126
Classic and challenging DP! And you need combine several tricks together with DP to make it 100% pass.My main reference is here:https://github.com/hav...
分类:
其他好文 时间:
2015-06-09 06:12:07
阅读次数:
127