Hello, I've read a lot about this problem, searching on Google and such, but nothing helped solve mine, I'm not using the IB with this class.
Inside the .h file I have
And inside the .m file I have
The button shows fine, but whenever I press it I get:
Now what's confusing me is that this same code used to work, but then I moved this class from a navigation control to a slide control and it stopped working, any help would be appreciated.
Inside the .h file I have
Code:
-(void) generatePieChart:(id)sender;
And inside the .m file I have
Code:
UIButton* infoBarButton = [[UIButton alloc] initWithFrame:CGRectMake(10.0, 280.0, 260, 25)];
[infoBarButton addTarget:self action:@selector(generatePieChart:) forControlEvents:UIControlEventTouchUpInside];
[infoBarButton addSubview:infoBarView];
[self.view addSubview:infoBarButton];
-(void) generatePieChart:(id)sender {
}
The button shows fine, but whenever I press it I get:
Code:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFType generatePieChart]: unrecognized selector sent to instance 0x4d80b00'
Now what's confusing me is that this same code used to work, but then I moved this class from a navigation control to a slide control and it stopped working, any help would be appreciated.