PhoneGap iOS add UIViewController - iphone

I wish to add a UIViewController to my iOS PhoneGap application which will be loaded before
the UIWebView is loaded - some kind of splash screen which will play a video, before the actual web page is loaded.
Is that possible using PhoneGap? can someone share their experience doing something like that?
Thanks!

I don't think it's possible in a regular phonegap project because you can't call a plugin until the device is ready, and that happens after showing the phonegap view.
But you can create a native project, create the first view controller and then change to a second view controller with a phonegap webview embedded
For more info about embedding phonegap webviews in native project see cleaver doc

Related

How to dismiss navigation bars on iphone iOS8 Mobile Safari when using tap drag and swipe gesture over the entire webpage

I work on a fullscreen iphone web application using gestures like tap, drag and swipes over the entire webpage. Minimal-ui was the best solution found for this kind of project.
According to Apple Specifications:
The minimal-ui viewport property is no longer supported in iOS 8.
What is the new way to simulate the old minimal-ui behavior?
Here is some information on telling iOS that a webpage is webapp-compatible so users can save it to their home screens and use it as if it were a separate app, with absolutely no safari controls visible.
From the apple developer docs:
A web application is designed to look and behave in a way similar to a native application—for example, it is scaled to fit the entire screen on iOS. You can tailor your web application for Safari on iOS even further, by making it appear like a native application when the user adds it to the Home screen. You do this by using settings for iOS that are ignored by other platforms.
...
On iOS, as part of optimizing your web application, have it use the standalone mode to look more like a native application. When you use this standalone mode, Safari is not used to display the web content—specifically, there is no browser URL text field at the top of the screen or button bar at the bottom of the screen. Only a status bar appears at the top of the screen.
...
Your web application can link to other built-in iOS apps by creating a link with a special URL. Available functionality includes calling a phone number, sending an SMS or iMessage, and opening a YouTube video in its native app if it is installed.
This would enable you to completely hide the safari navigation AND link to other built-in functionality such as placing a phone call or composing an SMS.

How to make the web page fit into UIWebView for testing using Selenium iPhone driver

I am testing a web app by running selenium test scripts on an iPad simulator using Selenium iPhone driver. The app opens in UIWebView inside the simulator. However the top part of the app (title , toolbar etc.) gets hidden from view. I am able to see the top part when I drag down and hold the bottom part of the app.
1) How can I make UIWebView make the app visible fully? I guess it is because of the difference in iPad simulator version used in the iPhone driver source code and one that I am using to launch the app(iOS 6.0). However I have no idea how to proceed with this as but I'm not familiar enough with iOS development.
2) Is testing in UIWebview same as testing the app in mobile Safari? Is there any way I can test the app in mobile Safari in an iPad using Selenium?
as I understand, you want to test the website, not the iphone app.
Then you could just as easily open it in mobile safari and use bookmark to view full screen (if you wanted the app to go fullscreen, you would need to do it programmatically)
I updated the Ipad storyboard file located at src\resource. The webView setting Y coordinate was set to -84 and I changed it to 0. This might help

IOS app UIWebView or Navigation Controller

I'm starting developing apps on iPhone, and I was wondering if you helping me with this.
Instagram App, Foursquare App both uses Navigation Buttons Bar at the bottom? Or is just a fancy navigation bar made in CSS and everything is loaded as a html in UIWebView.
It can be as fancy as you want and doesn't mean it's not native. The out-of-the-box controls and UI we are all familiar with are not the only option, you can subclass or even create your own "tab bar" from scratch if you want to.
These apps are using native code, not HTML/CSS
Grab class-dump and find it out yourself!
(...most likely, these great enterprises wouldn't hire developers who dare making a 'native' iOS app using UIWebView and HTML...)

How to use phonegap to be part of whole native ios application

I am with ios, I have a NavigationController with many child views.
I'd like to mix PhoneGap in, to create a new UIViewController with a webview inside, and use PhoneGap technology in this UIViewController.
I read the PhoneGap docs, only found that I need to use PhoneGap application-wide, to build the app from scratch, that is not what I need.
How to do that?
Use PhoneGapViewController instead of UIViewController

Create multiple screens iPhone app?

Which Xcode template do I select to build say facebook app ?
Is it an navigation based app? Or is it a windows app with multiple view screens?
I'm going to select the windows based template! Now howdy I add addition screens?
In my opinion, this kind of screen is not in UIKit.
Maybe someone has develop external framework for this.
You can do something like a UIView with UIImage or UIButton that manage events
Edit : Three20 framework is what you search for
http://developer.apple.com/library/ios/#referencelibrary/GettingStarted/URL_iPhone_OS_Overview/index.html#//apple_ref/doc/uid/TP40007592
http://developer.apple.com/library/ios/#referencelibrary/GettingStarted/URL_Tools_for_iPhone_OS_Development/index.html#//apple_ref/doc/uid/TP40007593