I find it hard with Xcode; for some reason, it just won't let me pass a variable from one class to another class controller. It should work, I basically just copied / pasted from my other classes (it works on all of them ... except this one). I was on it all night, tried everything I could think of, and still remains.
Here is the view controller class where I am making the call:
ResultadosViewController.h:
ResultadosViewController.m:
#import "ResultadosViewController.h" #import "DetalhesViewController.h" #import "Filme.h" #import "Peca.h" #import "Top10Discos.h" #import "Festival.h" @implementation ResultadosViewController @synthesize isViewPushed, array_resultados; (...) - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
And here is another class that I want to send to the array:
DetalhesViewController.h:
#import <UIKit/UIKit.h> #import "Filme.h" #import "Festival.h" #import "Top10Discos.h" #import "Peca.h" @interface DetalhesViewController : UIViewController { // Navegacao NSArray *array_resultados; } @property (nonatomic, retain) NSArray *array_resultados; @end
I'm not sure if any of you will see a .m file for this class; in this case, just ask.
Thanks in advance Hal
PS: I tried with other variables (other types too), cleared / rebuilt, recreated the xib file, you name it ... I got away from the tricks: (
Hal
source share