Introduction and usage of the iOS simulator (iOS Simulator) in "grooming" Xcode
About iOS Simulator introduction to iOS features
iOS Simulator is an accessibility tool that you can use when developing programs for iOS under Mac.
Its function is to help you emulate the iOS platform device, run the corresponding program on the simulator, so that you can debug the program without physical device.
Devices supported (emulated) by iOS
I have the iOS 5.1 simulator here, supported by 4 devices:
That
Ipad
IPad (Retina)
Iphone
IPhone (Retina)
How to open iOS emulator automatically opens iOS simulator after Xcode compiles iOS project (to debug the current program)
When debugging an iOS program in Xcode, click the corresponding run:
Xcode compiles the current iOS project, and after the compilation is successful, it automatically and calls the iOS emulator and runs the corresponding compiled program:
Note: Your current project, the corresponding simulator you are using needs to be set to the corresponding simulator.
For example, my project here is for the iphone, so set the iphone 5.1 Simulator:
Manually open the iOS emulator
If necessary, you can also manually open the corresponding iOS simulator.
Through Xcode->open Developer Tool->ios Simulator:
To open the corresponding iOS emulator.
About the interface in the iOS simulator
A total of three interfaces:
Here's the third interface: the application
This is the second interface: iphone main function interface
The first interface of the search interface:
Three switching between interfaces
In addition to clicking on the dot, you can also drag with the mouse:
iOS Simulator Usage Tips
1. Custom (GPS, (Google) maps will be used in the current coordinates)
A feature that has been inadvertently discovered that can customize the current coordinates:
Its default coordinates are the coordinates of the Apple HQ:
Latitude: 37.785834
Longitude: 122.406417
This address, the "secret" was discovered before debugging the Add Map feature.
For the coordinates, the map aspect content, the interest can refer to this sticker:
Support for adding maps to your Second IOS app:birdwatching
Corresponding, you can see that some other addresses have been provided above, such as:
Apple Stores
Apple
City Bicycle Ride
City Run
Freeware Drive
I'm not going to toss it for the time being, people who are interested can try it on their own.
2. Where is the "storage screenshot" saved?
To store screenshots through files:
You can store the current iOS emulator.
But where are the pictures saved?
For this, refer to: In the simulator after the screenshot image save location, but through the Finder (equivalent to the Windows Explorer), but can not find what it said
/Library/Application Support/iphone simulator/
Later forced himself to a good toss.
Later, the corresponding iphone Simulator was found via the command line:
crifan$ pwd/users/crifan/library/application support/iphone simulator/5.1limatoimac:5.1 crifan$ cd/users/crifan/ limatoimac:~ crifan$ ls-latotal 72drwxr-xr-x+ Crifan staff 578 8 13:50. drwxr-xr-x 5 Root Admin 170 8 8 21:16.. [email protected] 1 Crifan staff 5 8 8 21:16. Cfusertextencoding[email protected] 1 Crifan staff 24580 9 10 16:52. DS_STOREDRWX------Crifan Staff 442 9 5 15:49. TRASH-RW-------1 Crifan Staff 1033 8 13:50. BASH_HISTORY-RW-------1 Crifan staff 1098 8 13:50. Viminfo Drwxr-xr-x 7 Crifan Staff 238 9 09:49 cocoanotepaddrwx------+ 6 Crifan Staff 204 9 16:50 desktopdrwx--- ---+ 6 Crifan 204 8 10:52 documentsdrwx------+ Crifan Staff 408 8 17:12 Downloads[email pro Tected] Crifan staff 1394 8 11:08 librarydrwx------+ 3 Crifan Staff 102 8 8 21:16 moviesdrwx------+ 7 CR Ifan Staff 238 8 14:56 musicdrwx------+ Crifan Staff 340 9 15:19 picturesdrwxr-xr-x+ 5 Crifan staff 8 8 21:16 publicdrwxr-xr-x 5 Crifan Staff 170 9 7 15:3 6 Develop
Visible, the current user Crifan below, there is a corresponding library under which there is
Application Support/iphone simulator/5.1
However, the result is that/users/crifan/library/is a hidden folder, and the Library folder is never found in the Finder, under the Crifan folder.
Then I thought, the Finder has a go, inside can open a specific path:
Then finally found the corresponding hidden "Library" folder:
But then looked for half a day, only to find the screen shot snapshot location:
One is, for each of the paths in which the program is located:
Like what:
/users/your user name/Library/Application support/iphone simulator/Simulator version number/applications/xcode the number of items generated by/library/caches/ snapshots/Project Name
Like what:
/users/crifan/library/application Support/iphone SIMULATOR/5.1/APPLICATIONS/58D98889-3767-4B2B-B883-88C04345A8A3 /library/caches/snapshots/crifan.com.birdwatching
The corresponding file uiapplicationautomaticsnapshotdefault-portrait.jpg is as follows:
The other is:
/users/your user name/Library/Application support/iphone simulator/Simulator version number/library/caches/snapshots/ios project name
The corresponding files for multiple projects are concentrated here.
For a single item, there are currently the most recent files:
Like what:
/users/crifan/library/application Support/iphone simulator/5.1/library/caches/snapshots/ Com.apple.mobileslideshow
There are corresponding file uiapplicationautomaticsnapshotdefault-portrait.jpg:
Summary
At this point, we finally found the project, there are two positions:
1./users/Your user name/Library/Application support/iphone simulator/Simulator version number/applications/xcode the number of a project that was generated/library/ caches/snapshots/Project Name
2. /users/Your user name/Library/Application support/iphone simulator/Simulator version number/library/caches/snapshots/ios project name
In addition, it seems that the screen only save the latest leaflets, many times will lead to the previous is overwritten ...
So the need to copy out, to be finished, you can copy it, or the next time before the cover.
3. Add Simplified Chinese Pinyin input method
In the second interface of iOS: iphone main interface:
Settings->general->keyboard->international keyboards Add New Keyboard->chinese simplified–pinyin
You can add the input method of chinese–simplified (PinYin), that is, pinyin input method of Simplified Chinese
Graphic:
After setting up, enter the keyboard, you can click on the small earth, switch different input methods.
You can switch to the Chinese simplified input method, input Chinese:
Introduction and usage of the iOS simulator (iOS Simulator) in "grooming" Xcode