View Controller call method on Sub View
I have a View Controller that has a UIButton in it. I have a UIView in
that View Controller that accepts signatures. There is a .h and .m file
associated with the UIView. The UIView's .m file has an erase method. I
want the UIButton in my View Controller to be able to call that erase
method, but I'm not sure how to do it. Here's the code I was trying:
-(IBAction)clearButtonPressed:(id)sender
{
SignatureView *SC = [[SignatureView alloc] init];
[SC erase];
NSLog(@"Pressed");
}
The NSLog works, so I know that the action is being called. What gives?
No comments:
Post a Comment