相关考题
-
单项选择题
下面那个方法可以比较两个NSString *str1, *str2的异同()
A. if(str1 = str2) xxx ;
B. if([str1 isEqualToString:str2]) xxx ;
C. if(str1 && str2) xxx ;
D. if([str1 length] == [str2 length]) xxx; -
单项选择题
下面的代码问题在哪?()
A.应该将var synthesize
B.调用会出现死循环
C.正常
D.返回值错误 -
单项选择题
下面关于#import和#include的描述正确的是()
A.#import是#include的替代指令,防止重复引用
B.#import和#include不可以混合使用
C.#import只用于引用Objective-C的文件,#include只用于引用C和C++的文件
D.#import和#include的使用效果完全相同
