You need to log in to create posts and topics.
Tutorial_5
1,678 Posts
#1 · September 4, 2011, 2:16 pm
Quote from Forum Archives on September 4, 2011, 2:16 pmPosted 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]
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]
Click for thumbs down.0Click for thumbs up.0