多项选择题

下面哪些关键字会引起对象的引用计数(retainCount)加一:()。

A.alloc
B.init
C.retain
D.copy

<上一题 目录 下一题>
热门 试题

多项选择题
下面哪些方法是UITableView的delegate方法:()。

A.-(NSInteger)tableView:(UITableView*)tableView numberOfRowsInSection:(NSInteger)section;
B.-(UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath;
C.-(CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath;
D.-(void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath;

单项选择题
iOS中,可以从一个应用(如APP01)跳转到另外一个应用(如APP02),如果要在跳转的过程中,将username和password这两个参数传递给APP02,下列代码正确的是:()。

A.NSURL* open_URL_A=[NSURL URLWithString:@"APP02://username=test01&password=123456"]
B.NSURL* open_URL_A=[NSURL URLWithString:@"APP02://username=test01,password=123456"]
C.NSURL* open_URL_A=[NSURL URLWithString:@"APP02://username=test01//password=123456"]
D.NSURL* open_URL_A=[NSURL URLWithString:@"APP02://username=test01#password=123456"]

相关试题
  • NSLock对象实现了NSLockingprotocol。
  • 沙盒机制是一个安全机制。
  • -initWithRequest:delegate为采用同步方...
  • 谓词是指在计算机中表示计算真假值的函数。
  • appendFormat是追加带变量的字符串的方法。