Forum Navigation
Forum breadcrumbs - You are here:WeLoveGod RallysPublic Forums: fbcocoaTutorial_5
You need to log in to create posts and topics.

Tutorial_5

Posted by: fbcocoa.bw <fbcocoa.bw@...>

SVV wrote:

Everything in the view is printed, including the buttons, which we probably don't want to see in the final output.  To avoid printing the buttons: 1) retain them to prevent loss, 2) remove them from the Superview, and 3) restore them after the printing has been done.

Another nice demo Steve. Thanks.
Alternative to retain/remove/restore:
 [gPrintBtnID setHidden:YES];
 [gQuitBtnID setHidden:YES];
// …..
 [gPrintBtnID setHidden:NO];
 [gQuitBtnID setHidden:NO];
Bernie


To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]