Interacte with a childview from the mainView

1. function call must be defined in the childview/object’s header file
e.g. – (void) hideWebView;

In the parent object, call it like this
[targetObject performSelectorOnMainThread:@selector(target function ID in targetObject) withObject:(targetObjectID) waitUntilDone:YES]
[buttonOverlay performSelectorOnMainThread:@selector(hideDeleteButton) withObject:buttonOverlay waitUntilDone:YES];

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s