• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do I pop/release from within a subView back to my original/calling routine?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I pop/release from within a subView back to my original/calling routine?


  • Subject: How do I pop/release from within a subView back to my original/calling routine?
  • From: email@hidden
  • Date: Sun, 01 Mar 2009 12:10:36 -0800 (PST)

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

  • Follow-Ups:
    • Re: How do I pop/release from within a subView back to myoriginal/calling routine?
      • From: email@hidden
  • Prev by Date: Logical and - second operator evaluated?
  • Next by Date: Re: Logical and - second operator evaluated?
  • Previous by thread: Re: Logical and - second operator evaluated?
  • Next by thread: Re: How do I pop/release from within a subView back to myoriginal/calling routine?
  • Index(es):
    • Date
    • Thread