如果将synthesize省略,并且我们自己实现setter和getter方法时,系统就不会生成对应的setter和getter方法,还有实例变量
1,当把语义特性声明为assign时,setter和getter时方法内部实现
- (void)setName:(NSString *)name{
_name = name;
}
- (NSString *)na...
分类:
其他好文 时间:
2014-08-18 23:37:33
阅读次数:
318
美丽说面试题1,IOS是怎样进行内存管理的,什么是ARC。2,声明Property时,assign,nonatomic,readonly,retain,copy(各什么意思,括号里没打印出来,我猜得)3,delegate需要retain吗?4,什么是designated initlalizer?执行...
分类:
移动开发 时间:
2014-08-18 20:23:32
阅读次数:
345
从SVN上下载项目,所有代码都有下来,在本地编译,java类总是报出n多红叉,惨不忍睹,String cannot be resolved to a type都出来了,以为是jar包未被加载,于是project-properties--java build path -- libraries,删掉已...
分类:
系统相关 时间:
2014-08-18 13:01:02
阅读次数:
248
cannot call methods on draggable prior to initialization; attempted to call 报这个问题的根本原因是因为你的引用文件有问题
,你的jquery 的js或者css样式引用重复导致它读取两次,初始化失败就会报这个错误,好好看看配置文件...
分类:
其他好文 时间:
2014-08-18 12:36:04
阅读次数:
295
还原Oracle数据库时出现ORA-19870和ORA-19573错误,如:RMAN> restore database;Starting restore at 11-DEC-12 using channel ORA_DISK_1channel ORA_DISK_1: starting datafi...
分类:
其他好文 时间:
2014-08-17 19:51:02
阅读次数:
342
有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the in...
分类:
其他好文 时间:
2014-08-17 16:58:52
阅读次数:
201
#import @interface Child : NSObject@property (nonatomic,assign) int age;-(id) initWithAge:(int) age;@end#import "Child.h"@implementation Child-(id) in...
分类:
移动开发 时间:
2014-08-17 12:58:22
阅读次数:
204
svn更新代码后,打开xcode工程文件,会出现 xxx..xcodeproj cannot be opened because the project file cannot be parsed.因为.xcodeproj工程文件冲突了,然后还是会强制更新,内部文件出现了冲突,所以解析不了文件。会出...
分类:
其他好文 时间:
2014-08-17 11:35:52
阅读次数:
227
如果将synthesize省略,并且我们自己实现setter和getter方法时,系统就不会生成对应的setter和getter方法,还有实例变量
1,当把语义特性声明为assign时,setter和getter时方法内部实现
- (void)setName:(NSString *)name{
_name = name;
}
- (NSString *)name{
...
分类:
其他好文 时间:
2014-08-15 23:51:39
阅读次数:
489
#include
#include
#include
using namespace std;
struct Data
{
void assign(int x,int y,int z)
{
row=x;
col=y;
val=z;
}
int row,col,val;
} data[730];
struct Node
...
分类:
其他好文 时间:
2014-08-15 16:02:29
阅读次数:
1129