Re: How do I pop/release from within a subView back to myoriginal/calling routine?
Re: How do I pop/release from within a subView back to myoriginal/calling routine?
- Subject: Re: How do I pop/release from within a subView back to myoriginal/calling routine?
- From: email@hidden
- Date: Sun, 01 Mar 2009 13:26:40 -0800 (PST)
Solution: I used the NSNotification class to send a note to the calling class to remove the source view.
It works: I can pop out of the subView now.
Ric.
On 03/01/2009 12:10 email@hidden wrote ..
> I have a mental block, here... a bit lost:
>
> I've finished doing stuff within a subView that I generated and wish to exit &
> dealloc (pop) to the
> previous view (where I was).
>
>
> Here's where I've started, created the subView, did work within the SubView and
> now which to exit:
>
> - (void)glyphIconButtonAction:(UIButton *)sender {
>
> @try {
> sender.hidden = TRUE; // Hide the original icon to make it look it's
> in transit.
>
> // Create the Glyph Animation Container, passing in the glyph button (sender)
> that needs to be animated.
> CGRect windowRect = [[UIScreen mainScreen] applicationFrame];
> glyphAnimationContainerView = [[GlyphAnimationContainerView alloc] initWithFrame:windowRect
> :sender];
>
> glyphAnimationContainerView.theGlyphButtonSource = sender;
>
> [scrollView.window addSubview:glyphAnimationContainerView]; <-- JUMPED
> INTO THIS SUBVIEW; NOW WANT OUT.
>
> } @catch (NSException *e) {
> NSLog(@"*** EXCEPTION *** {GlyphTemplate+GlyphAction} glyphIconButtonAction\n%@\n-----\n",e);
> }
>
> } // end glyphIconButtonAction().
> Here's my environment:
> (gdb) po [self superview]
> <UIWindow: 0x1024b80>
>
> (gdb) po [[self superview] subviews]
> <NSCFArray 0x1027d10>(
> <MainMenuView: 0x1027020>,
> <UIImageView: 0x104a1f0>,
> <GlyphAnimationContainerView: 0x10518d0> <----- I'm here.
> )
> The GlyphAnimationContainerView needs to be purged and the original environment
> restored.
> >From within GlyphAnimationContainerView, how to I pop out and purge this view?
>
> Ric
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden