ios - How to transition UIToolbar with it's parent view -


how can transition 1 uiviewcontroller (with bottom toolbar) 1 (without toolbar), while animation in progress, toolbar moves away first view, meaning toolbar stays in it's initial position of first view?

i've seen behaviour in "things" app.

just clear, not looking solutions such hiding/showing toolbar inside viewdidappear.

so, solution wasn't happy about, @ moment seems one.

the point ignore built in toolbar property of uinavigationcontroller, create separate uitoolbar , place inside view controller.

// create bar items uibarbuttonitem *flexiblespace = [[uibarbuttonitem alloc] initwithbarbuttonsystemitem:uibarbuttonsystemitemflexiblespace target:nil action:nil];  nsarray *toolbaritems = [[nsarray alloc] initwithobjects: flexiblespace, nil]; [flexiblespace release], flexiblespace = nil;  uitoolbar *customtoolbar = [[uitoolbar alloc] init]; [customtoolbar sizetofit]; [customtoolbar setframe:cgrectmake(0.0, self.view.frame.size.height - self.navigationcontroller.navigationbar.frame.size.height - customtoolbar.frame.size.height, customtoolbar.frame.size.width, customtoolbar.frame.size.height)]; [customtoolbar setitems:toolbaritems]; [[self view] addsubview:customtoolbar]; [customtoolbar release], customtoolbar = nil;  [toolbaritems release], toolbaritems = nil; 

this way toolbar slide away it's view, causing no animation issue such "white rectangles" or late appearing toolbar when placed in viewdidappear...


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -