Quantcast
Channel: User Bazinga - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Answer by Bazinga for Accessing an instance method of a ViewController From Another view controller

$
0
0

VC1.m:

-(void) yourMethod {     ...}

VC2.m

YOURViewController * vc2 = [[YOURViewController alloc]init];[vc yourMethod];[vc release];

Make sure to import your YOURViewController in your other view .m fileSomething like that should work.

Or if you're having problems, try this tutorial here:

Tutorial on How-To Pass Data Between Two View Controllers

Hope this helps :)


Viewing all articles
Browse latest Browse all 37

Trending Articles