iOS Ionic loading platform notes

Source: Internet
Author: User
Tags uicontrol


1. Install CNPM:NPM install-g cnpm--registry=https://registry.npm.taobao.org

2.An error occurred when I was running "Ionic Cordova Platform Add iOS". It noticed me with the information:using cordova-fetch for [email protected]^4.4.0
This problem had been resolved by using commands:

Cordova Platform RM iOS
Cordova Platform Add iOS--nofetch
Ionic build Ios/sudo Ionic Cordova build iOS
sudo ionic Cordova run iOS


To install the emulator:

sudo npm install-g Ios-sim//represents the emulator operating environment,
sudo npm install-g ios-deploy//Represents the real-machine operating environment.

Ionic emulate–list
Ionic emulate iOS
Ionic emulate ios–target= "iPhone-6, 10.0"

3.

commands for installing Cordova and Ionic under Mac systems
sudo npm install-g Cordova Ionic
If you have already installed, to make sure that you have updated to the latest version, use the following command
sudo npm update-g Cordova Ionic
Use ionic to create an app named MyApp based on Tabbar (except for tabs, including Slidemenu, etc.)
$ Ionic Start myApp tabs
5. Setting up a compiled platform for Ionic
$ Ionic Login
$ CD MYAPP
Sudo Cordova Platform Add iOS--nofetch

$ Ionic Build Android
$ Ionic Run Android

——————————————

CD Demo_1

Isudo Cordova Build iOS: Don't ionic
sudo ionic Cordova emulate iOS//simulator run

Right-clicking Button:touch up inside is a click event and you can see the code of the binding.

A button can connect multiple methods, and a text box can connect multiple properties.

Determine whether an object can be wired by: To see if the object inherits Uicontrol, the Uicontrol class is used for control.

Wired: control+ control, drag to code, write method name, ID is the control itself.


/*
Determine if an object can be connected by:
See if the class of the object inherits from Uicontrol


Classic error: Look at the console of the reason,
1. Error One
Describe:
Reason: ' [<mainviewcontroller 0x7ffebbc1a880> Setvalue:forundefinedkey:]: This class was not key value Coding-compliant for the key TestLabel. '
Cause: There are extra connections.
Workaround: Remove redundant connections

2. Error two
Describe:
Reason: '-[mainviewcontroller clickbtn:]: Unrecognized selector sent to instance 0x7feb69418640 '
Reason: The corresponding method could not be found
Resolution: 1. Add the corresponding method 2. Remove redundant connections
*/


Right panel: Placehoider (default display value), Keyboard type (keyboard type),

Http://www.easyicon.net icon Resource.

button to jump to the next controller: Click the button ———— drag to the next control ——— click Show
The controller of the jump has a return key: Editor ——— Embed in--navigation Control
Save the dragged StoryBoard to the left folder: Click the Circle of the storyboard ———— editor ——— refacter to storyboard--Select the folder where the class for the controller is located.

iOS Ionic loading platform notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.