开发者

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]
  1. Application launches with Login Screen [ Master = number of options + login button Detail = detail of option selected from Master ]

  2. 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]

  3. 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.

  1. Load the splitview normally.
  2. For log-in, use the presentModelViewController to load the log-in view.

Don't add the views.

Regards, vijay

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜