40media remove every type of subview from uiscrollview?

remove every type of subview from uiscrollview?

hello all i am using this code to show flip animation...... i have a uiview with scrollview(paging enabled)...so it shows a view like a page...now i also have done flip animation using this code....

-(void)flipView {     flashCardAnswerController *flashCardAnswerControllerobj =  [[flashCardAnswerController alloc] initWithNibName:@"FlashCardAnswerView" bundle:[NSBundle mainBundle]]; [flashCardAnswerControllerobj.view setFrame:[[self view] frame]]; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.60];// Sub. duration   UIView *superview;      if ((superview = [[self view] superview])) { 	[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft   forView:superview cache:YES]; 	[superview addSubview:[flashCardAnswerControllerobj view]]; } [UIView commitAnimations]; } 

so according to code the new view will be added to scrollview..i also manage to release the new view while flipping back...but if i directly push the back button on navigaion controller...the flip side view won't release. i tried this in dealloc method of my scrolleview's class but it doesn't work

for(UIView *subview in [scrollView subviews]) { 	    [subview removeFromSuperview]; } 

how do i remove flipside's view the views are very much in number...approx. 48 plus 48 flip side views so definietly it will create memory issues on device...

also could someone tell me a way to disable NavigationBar's back button in flip side view...without creating scolling class's object.

Converting OpenGL Primitives to OpenGLES


I did not have a direct answer to your question, although I must tell this this is the old iPhone OS 2.x way of displaying a views flip-side.. casting a NSString to char problem In iPhone OS 3.0 you should use presentModalViewController:animated: instead. Trying to include iPhone OpenGLES headers in C++ codeThis is enough less code, and all of the problems you describe in your questions goes away.. Is NSTimer auto retained? The idea is this the flip-side of the current view, is managed by a separate UIViewController this you display modally. Submit ajax form on keyboard close without a submit button on the iphone?But in addition to the sliding animation from 2.0 you must also have the new view controller animate in and out with a horizontal flip.. Why does this create a memory leak (iPhone)?
self.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self presentModalViewController:flipSideController                         animated:YES]; 
UICachedDeviceWhiteColor and NSAutoRelease for table cell mem leaks


[[scrollView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)] 

68 out of 100 based on 43 user ratings 478 reviews