ios - IPad Split View Implement in Another View -


i creating ipad app , has several views load data,but 1 view need add split view. dont need split views in other views. detail pages. search through net , found lots of tutorials based on ipad split view. problem creating project split view project or create window base app , add slipt view delegate. dont need that, need implement split view 1 view. there way overcome problem?

you can add split view inside navigation controller. if split view container view controller , apple recommends in documentation containers should not embedded in other containers, adding split view inside navigation controller works correctly , never noticed side effect in doing it.

basically should is: - in app delegate create uinavigationcontroller , use root view of application window - hide navigation controller navigation bar if don't want see (showing split view main navbar on top not nice looking...) - add view controllers inside navigation bar.

example: imagine have application views sequence:

first view (full view = detail page) second view (split view) third view (full = detail page)

so can represent first , third standard view controllers (full screen), while second split view. app initialized creating main navigation controller, adding first on top controller , using main navigation controller window's root view.

than use navigation controller push, pop methods switch between these views or change navigation controller "viewcontrollers" array directly if don't want recommended push/pop methods.

if need add special behavior navigation controller based on type of view on top, register app delegate navigation controller delegate (or "main controller" object dedicated if don't want complicate app delegate).


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -