UISplitviewController + Issue regarding the Layout of Detail controller
I am facing one issue regarding Layout of detail view in UISplitviewController. below is application flow.
[window addsubview:PreLoginController.view]
Application launches with Login Screen [ Master = number of options + login button Detail = detail of option selected from Master ]
User clicks "Login" and one view [ full screen like present modalview controller ] appeared, user fills the detail and click Login button
[window addsubview:PostLoginController.view]
User Clicks "Log out"
[window addsubview:PreLoginController.view]
*Problem lies here - Detail page appeared with width 427 and black patch is displayed. when Detail page is displayed properly at that time width is 748.
Why calling [window addsubview:PreLoginController.view] second time affecting width distur开发者_运维百科bance.
Please help me on this.
thanks,
Please follow the below steps to resolve the issue.
- Load the splitview normally.
- For log-in, use the presentModelViewController to load the log-in view.
Don't add the views.
Regards, vijay
精彩评论