Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Steps (might be the same for any plugin):</p> <ul> <li>Get the plugin <a href="https://github.com/phonegap/phonegap-plugins/tree/master/iOS/NativeControls" rel="nofollow">iOS NativeControls</a></li> <li>Copy *.xib, *.m and *.h files to your project's "Plugins" folder (should already exist and contain a README file)</li> <li>They have to be added to the project as well, so drag them from the "Plugins" folder (in Finder) to the same folder (in Xcode) and select to create references</li> <li>Open "Resources/Cordova.plist" and under "Plugins", add a key with the plugin name "NativeControls" and a string value of "NativeControls" (I guess it's the plugin's main class name)</li> <li><p>Try the following example (<strong>NOTE:</strong> this example is from 2012-06-28, I'm actually working on an improved version that removes the toolbar functionality and replaces it with an actually working navigation bar – see <a href="https://github.com/AndiDog/phonegap-plugins" rel="nofollow">here</a>)</p> <pre><code>window.plugins.nativeControls.createTabBar() window.plugins.nativeControls.createTabBarItem('home', 'Home', 'tabButton:Contacts') window.plugins.nativeControls.showTabBar() window.plugins.nativeControls.showTabBarItems('home') window.plugins.nativeControls.createToolBar() window.plugins.nativeControls.setToolBarTitle('Hello toolbar!') window.plugins.nativeControls.showToolBar() alert("Tabs and toolbar should now become visible") </code></pre></li> </ul> <p>I can't get the title of the toolbar to work, though, but both the tab and the toolbar itself (without text) is showing.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload