You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Mitchell Wagner (JIRA)" <ji...@apache.org> on 2013/07/09 21:25:49 UTC

[jira] [Comment Edited] (CB-4059) Unable to Customize layout of MainViewController.xib.

    [ https://issues.apache.org/jira/browse/CB-4059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13702221#comment-13702221 ] 

Mitchell Wagner edited comment on CB-4059 at 7/9/13 7:24 PM:
-------------------------------------------------------------

Found something that works in 2.7.0 so far. 

in AppDelegate.m in didFinishLaunchingWithOptions: set the useSplashScreen to NO. It was hiding the webview and not dismissing. 

self.viewController.useSplashScreen = NO;


Then to get  phonegap to actually work also in AppDelegate.m in didFinishLaunchingWithOptions: you have to add the following line of code. 

[CDVURLProtocol registerViewController:self.viewController];

UPDATE:
This only works in displaying the content. Phonegap within content doesn't work. 


                
      was (Author: mtwagner):
    Found something that works in 2.7.0 so far. 

in AppDelegate.m in didFinishLaunchingWithOptions: set the useSplashScreen to NO. It was hiding the webview and not dismissing. 

self.viewController.useSplashScreen = NO;


Then to get  phonegap to actually work also in AppDelegate.m in didFinishLaunchingWithOptions: you have to add the following line of code. 

[CDVURLProtocol registerViewController:self.viewController];
                  
> Unable to Customize layout of MainViewController.xib. 
> ------------------------------------------------------
>
>                 Key: CB-4059
>                 URL: https://issues.apache.org/jira/browse/CB-4059
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0, 2.8.0, 2.9.0
>         Environment: iOS SDK 6.1, 
> Mac OS X 10.8.4, 
> Xcode 4.6.3 (4H1503)
>            Reporter: Mitchell Wagner
>            Assignee: Shazron Abdullah
>         Attachments: CustomChanges.png, File Owner's Connections.png, Results.png, UIWebView's Connections.png, With WebView's Delegate set to Xib's File Owner..png
>
>
> Up to version 2.2, it was possible to customize the layout of MainViewController.xib in interface builder, by adding a CDVCordovaView to the main view and connecting it proper IBOutlet. One would then make the following changes; 
> AppDelegate.m:
>    self.viewController.webView.delegate = self.viewController;
> AppDelegate.h:
>    @property (nonatomic, strong) IBOutlet MainViewController* viewController;
> This is broken in 2.3 and onward, including the current 2.9.0. 
> Console:
> 2013-07-01 14:31:36.230 KME[4696:c07] Multi-tasking -> Device: YES, App: YES
> <Add then nothing>
> For a live version of this working in a released app, see "IU Mobile" in app store. 
> I'll attach screenshots in the comments on this Jira. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira