i have written code to downloading data from server using NSOperationQueue and NSOperation. and now i want to show progress on UserInterface. i used UITableView and used NSOpeartionQueue as a datasource in tableview delegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return [[[Downloadmanager sharedInstance] downloadOperationQueue] count];
}
and bind NSOperation`s properties to UITableViewCell.
- 1) Is this a fisible solution to sending
NSOperationQueueas a datasource to tableview delegate ? - 2) How to implement notification to reload tableview when
NSOperation's state changes?
Thanks.