I've been trying to do an ios app with:
a viewcontrolloer with some functions/methods
a new class with a pointer to these functions/methods so that class1.point2f () would work
// testclass header @property void (*point2f)(); // viewcontroller header #import "testclass.h" @interface ViewController : UIViewController { testclass *test; } @property testclass *test; @end // viewcontroller implementation void downx() { NSLog(@"hello"); }; - (void)viewDidLoad { [super viewDidLoad]; test.point2f = downx; test.point2f (); // crashes only at this line
I would be very thankfull for answers or at least keywords I could look into further.