• 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
View Caching Issues and Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

View Caching Issues and Questions


  • Subject: View Caching Issues and Questions
  • From: James Cicenia <email@hidden>
  • Date: Wed, 4 Mar 2009 11:17:48 -0600

Hello -

I am a bit confused on when or why a view is cached and what is the best possible way to clear it.

First:

I have a UITabBarController. The views that this brings up are cached. This is actually great as I can test to see if something is changed and if so, do nothing and it brings up my view quick. So far so good. However, when I issue a viewWillAppear it seems that instead of "re- creating" my view it is actually overlaying my new image views on it without the old ones going away. I have done something like:

NSEnumerator *itemEnum = [ [veggieScrollView subviews] objectEnumerator];
UIView *tView;
while (tView = [itemEnum nextObject]) {
if([tView tag]==101)[tView removeFromSuperview];
}


And it clears those images but that seems rather poor to me and that their must be a better and cleaner way.

Now I also have views that I popup from those parent views above and they DON'T cache the view so they have to be reconstituted in their viewWillAppear each time. This is bad because those popups have content that never changes once the program loads.
So in their case, I want them to be cached.


Any help would be greatly appreciated.

James Cicenia

_______________________________________________

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


  • Prev by Date: Re: Can't get setDelegate to work on NSMenu attached to NSStatusItem
  • Next by Date: Re: Can't get setDelegate to work on NSMenu attached to NSStatusItem
  • Previous by thread: [Q] Responder Chain & makeFirstResponder
  • Next by thread: Sheet not ending
  • Index(es):
    • Date
    • Thread