【发布时间】:2010-09-11 21:14:26
【问题描述】:
在 Erica Sadun 的下载助手 link here 中,我可以将这些方法放入我的类中:
- (void) didReceiveData: (NSData *) theData;
- (void) didReceiveFilename: (NSString *) aName;
- (void) dataDownloadFailed: (NSString *) reason;
- (void) dataDownloadAtPercent: (NSNumber *) aPercent;
这些方法显然参考了“DownloadHelper.h”和“DownloadherHelper.m”。我想知道我是否能够通过其中一种方法访问 xib 视图上的属性,例如文本字段、uitableviews、uilabels ......等。例如:
- (void) didReceiveFilename: (NSString *) aName {
[label setText:@"hi"];
}
我已尝试这样做,但 xib 视图上的对象不会更新。就像上面给出的例子一样。有没有办法做到这一点?
谢谢,
凯文
【问题讨论】:
-
您介意更新此问题以提供有关问题实际原因的一些详细信息(代码)吗?
标签: iphone objective-c xcode download object