我是 iphone 新手,我有点怀疑我有一个 NSMutableArray,它在类 DownloadManager.m 中,如下所示
- (void) queueDownload: (Download*) download
{
[bookTitlesWhichAreInDownloadQueue addObject:download.title_];
NSLog(@"bookTitlesWhichAreInDownloadQueue is %@",bookTitlesWhichAreInDownloadQueue);
}
在上面的方法bookTitlesWhichAreInDownloadQueue
中是一个 NSMutableArray
我想在另一个类(BiblePlayerViewController.m)中的方法中访问这个数组,它是下面的方法
-(void)showingAlertViewWhenBookIsNotDownloaded {
NSLog(@"bookNamesWhichAreInDownloadedQueue1 is %d",[bookNamesWhichAreInDownloadedQueue count]);
}
如果有人知道这怎么可能,请帮助我...