`EXHIBIT 2032
`
`
`EXHIBIT 2032
`
`
`
`iOS Simulator User
`
`Guide
`
`Developer
`
`
`
`Contents
`
`AboutiOS Simulator 5
`Ata Glance 5
`
`Organization of This Document 6
`See Also 6
`
`Getting Started in iOS Simulator 7
`Access iOS Simulator from Xcode 7
`
`Running Your App in iOS Simulator 8
`Launching iOS Simulator Without Running an App 8
`View the Installed Apps 9
`Use Safari to Test Web Apps 11
`Use Mapsto Simulate Location Awareness 12
`Change the Simulated Device and iOS Version 13
`Alter the Settings in iOS Simulator 1?
`Rotate the Device 18
`Test in iOS Simulator and on a Device 19
`
`Quit iOS Simulator 20
`
`Interacting with iOS Simulator 21
`Simulating Hardware Interactions 21
`Simulating UserGestures 22
`
`Simulating Keyboards in iOS Simulator 23
`Installing and Uninstalling Apps 24
`Copying and Pasting in iOS Simulator 24
`Ta king a Screenshot ofthe Simulator 28
`Viewing the Simulated Device‘s Screen 28
`Testing Retina and Non-Retina Display Devices 29
`
`Testing and Debugging in iOS Simulator 30
`Limitations of Testing in iOS Simulator 30
`Hardware Limitations 30
`
`OpenGL ES Limitations 31
`API Limitations 31
`iOS Version Limitations 31
`
`
`
`2013-10-22 | Copyright © 2013 Apple Inc. All Rights Reserved.
`
`2
`
`
`
`Contents
`
`Testing forthe iPad mini 32
`Testing for 64-bit Corn patibility 32
`Testing App Accessibility 33
`Testing App Localization 34
`Testing Web Apps 34
`Testing iCloud 35
`Using the Debugging Tools in iOS Simulator 35
`Viewing Crash Logs 36
`
`Customizing Your iOS Simulator Experience with Xcode Schemes 37
`
`Document Revision History 39
`
`
`
`2013-10-22 | Copyright © 2013 Apple Inc. All Rights Reserved.
`
`3
`
`
`
`Figures and Tables
`
`Getting Started in iOS Simulator 7
`Figure 1-1
`Simulated iPhone running the HelloWorld app 8
`The iOS Simulator Horne screen for a simulated iPhone in the iOS 7.0 simulation environment
`Figure 1-2
`10
`
`Figure 1-3
`Figure 1-4
`Figure 1-5
`Figure 1-6
`Figure 1-?
`
`11
`The Apple website running in Safari in iOS Simulator
`Running Maps and simulating a latitude and longitude in iOS Simulator 13
`iOS Simulator displays a simulated iPad running iOS 6.1
`15
`Example ofthe Settings app in a simulated iPad device 17
`A rotated simulated iPad running in the iOS 6.1 simulation environment 19
`
`Interacting with iOS Simulator 21
`Figure 2-1
`iOS Simulator scaled to 100 percent (left) and 75 percent (right) 28
`Table 2-1
`Manipulating iOS Simulator from the Hardware menu 21
`Table 2-2
`Performing gestures in iOS Simulator 22
`
`Testing and Debugging in iOS Simulator 30
`Figure 3-1
`The Accessibility Inspector running on a simulated iPhone 33
`Table 3-1
`Performing debugging through the iOS Simulator Debug menu 35
`
`
`
`2013-10-22 | Copyright © 2013 Apple Inc. All Rights Reserved.
`
`4
`
`
`
`About iOS Simulator
`
`The iOS Simulator allows you to rapidly prototype and test builds of your app duringthe development process.
`Installed as part of the Xcode tools along with the iOS SDK, iOS Simulator runs on your Mac and behaves like
`a standard Mac app while simulating an iPhone or iPad environment. Think of the simulator as a preliminary
`testing tool to use before testing your app on an actual device.
`
`iOS Simulator enables you to simulate several iOS devices and several versions of the iOS operating system.
`Each simulated software version is considered its own simulation environment, independent of the others,
`with its own settings and files. These settings and files exist on every device you test within a simulation
`environment.
`
`
`
`At a Glance
`
`By simulating the operation of your app in iOS Simulator, you can:
`
`2013-10-22
`
`| Copyright@ 2013 Apple lnc.AII Rights Rfierved.
`
`S
`
`
`
`About iOS Simulator
`See Also
`
`Find major problems in your app during design and early testing
`
`Test your app using developer tools that are available only for iOS Simulator
`
`Learn about the Xcode development experience and the iOS development environment before becoming
`a member of the the iOS Developer Program
`
`This guide walks you through iOS Simulator, starting with the basics on how to use it and moving on to the
`tools found within iOS Simulator that can assist you in testing and debugging your apps.
`
`Organization of This Document
`
`Read the following chapters to learn how to use iOS Simulator:
`
`“Getting Started in iOS Simulator" (page If), to understand the functionality of iOS Simulator, and gain
`a working knowledge of the various ways to launch it
`
`“Interacting with iOS Simulator" (page 21), to learn about the various ways of interacting with iOS Simulator,
`including gestures and hardware manipulation
`
`“Testing and Debugging in iOS Simulator" (page 30), to understand the tools available within iOS Simulator
`to assist you with testing and debugging your apps
`
`“Customizing Your iOS Simulator Experience with Xcode Schemes” (page 37), to learn about additional
`
`ways to customize your iOS Simulator experience through Xcode schemes
`
`See Also
`
`Apple provides these related documents that you may find helpful:
`
`To learn the basics of developing iOS apps, see SrartDeveioping iOS Apps Today.
`
`To learn more about how you can customize your development experience within Xcode, see Xcode
`Overview.
`
`To learn about the process of testing your app on a device, submitting it to the App Store, and distributing
`it, see App Distribution Guide.
`
`2013-10—22
`
`| Copyright © 2013 Apple Inc. All Rights Reserved.
`
`6
`
`
`
`Getting Started in iOS Simulator
`
`The iOS Simulator app, available within Xcode, presents the iPhone or iPad user interface in a window on your
`Mac computer. You interact with iOS Simulator by using the keyboard and the mouse to emulate taps, device
`rotation, and other user actions.
`
`This chapter explains the basic capabilities of iOS Simulator. You will use an iPhone app to gain some hands-on
`
`experience with iOS Simulator, allowing you to become familiar with the tool. If you do not have an iPhone
`app to use, you can use the HelloWorfd app. For more detailed information on interacting iOS Simulator and
`using it to test and debug your apps, refer to the later chapters in this book.
`
`Access iOS Simulator from Xcode
`
`There are two different ways to access iOS Simulator through Xcode. The first way is to run your app in iOS
`Simulator, and the second way is to launch iOS Simulator without running an app.
`
`2013-10—22
`
`| Copyright © 2013 Apple Inc. All Rights Reserved.
`
`7
`
`
`
`Getting Started in iOS Simulator
`Access iOS Simulator from Xcode
`
`Running Your App in iOS Simulator
`
`When testing an app in iOS Simulator, it is easiest to launch and run your app in iOS Simulator directly from
`your Xcode project. To run your app in iOS Simulator, choose iPhone Retina (4-inch) from the Xcode scheme
`pop-up menu, and click Run. Xcode builds your project and then launches the most recent version of your app
`running in iOS Simulator on your Mac’s screen, as shown in Figure 1-1.
`
`Figure 1-1
`
`Simulated iPhone running the HelloWorld app
`
`Hello, World!
`
`Launching iOS Simulator Without Running an App
`
`At times, you may want to launch iOS Simulator without running an app. This approach is helpful if you want
`to test how your app launches from the Home screen of a device or if you want to test a web app in Safari in
`iOS Simulator.
`
`2013-10-22
`
`| Copyright@ 2013 Apple lnc.AlI Rights Rfierved.
`
`8
`
`
`
`Getting Started in iOS Simulator
`View the Installed Apps
`
`To launch iOS Simulator without running an app
`1.
`Launch Xcode.
`
`2. Do one of the following:
`
`Choose Xcode > Open Developer Tool > iOS Simulator.
`
`Control-click the Xcode icon in the Dock, and choose Open Developer Tool > iOS Simulator from
`the shortcut menu.
`
`iOS Simulator opens and displays the Home screen of whichever simulated device was last used.
`
`View the Installed Apps
`
`From the Home screen, you have access to all of the apps that are installed in the iOS 7.0 simulation environment.
`There are two ways to access the Home screen in iOS Simulator from your app:
`
`Click the Home button.
`
`Choose Hardware > Home.
`
`Much like the Home screen on an iOS device, the simulator's Home screen has multiple pages. After clicking
`
`the Home button (or accessing the Home screen through the Hardware menu), you arrive at the second page
`of the Home screen. To get to the first page, where all of the preinstal led apps are found, swipe to the first
`Home screen by dragging to the right on the simulator screen.
`
`2013-10—22
`
`| Copyright © 2013 Apple Inc. All Rights Reserved.
`
`9
`
`
`
`Getting Started in iOS Simulator
`View the instaiied Apps
`
`On the Home screen, you see all of the apps that have been preloaded into iOS Simulator, as shown in Figure
`1-2.
`
`Figure 1-2
`
`The iOS Simulator Home screen for a simulated iPhone in the iOS 7.0 simulation environment
`
`
`
`The apps you see on the Home screen are specific to the simulated iPhone in the iOS 7.0 simulation environment.
`Because the Calendar app is available only in iOS simulator on iOS 7.0 and because Passbook is available only
`for the iPhone, these apps won’t appear if you switch to a legacy simulator or to simulating an unsupported
`device type.
`
`Use the installed apps to test your app’s interaction with them. For example, if you are testing a game, you
`can use iOS Simulator to ensure that the game is using Game Center correctly.
`
`2013-10-22
`
`| Copyright Cr; 2013 Apple lnc.AlI Rights Raerved.
`
`10
`
`
`
`Getting Started in iOS Simulator
`Use Safari to Test Web Apps
`
`Use Safari to Test Web Apps
`
`From the Home screen you can access Safari within iOS Simulator. Use Safari to test your iOS web apps directly
`on your Mac.
`
`1-
`
`2.
`
`From the Home screen, click Safari.
`
`In the address field in Safari, type apple. com and press the Return key.
`
`If your Mac is connected to the Internet, Safari displays the Apple website. See Figure 1-3.
`
`Figure 1-3
`
`The Apple website running in Safari in iOS Simulator
`
`CHI’I’lBI’ ’6‘
`
`2:28 PM
`
`
`
`apple.com
`
`2013-1022 | Copyright CC 2013 Apple Inc. All Rights Rfierved.
`
`'l'l
`
`
`
`Getting Started in iOS Simulator
`Use Maps to Simulate Location Awareness
`
`Use Maps to Simulate Location Awareness
`
`iOS Simulator provides tools to assist you in debugging your iOS app. One of the many features you can debug
`in iOS Simulator is location awareness within your app. Here's an example of how to simulate a different
`location, which can be seen in the Maps app:
`
`1.
`
`From the Home screen, click Maps.
`
`2. Choose Debug > Location > Custom Location.
`
`3.
`
`In the window that appears' type the number 40. 75 in the latitude field, and the number —73 . 75 in the
`longitude field.
`
`4. Click OK.
`
`5. Click the Current Location button in the bottom-left corner of the simulated device screen.
`
`2013-10-22 | Copyright © 2013 Apple Inc. All Rights Reserved.
`
`12
`
`
`
`Getting Started in iOS Simulator
`Change the Simulated Device and iOS Version
`
`After completing this task, notice that the blue dot reptesenting your location is in New York, NY, near the
`Long Island Expressway, as shown in Figure 1-4.
`
`Figure 1-4
`
`Running Maps and simulating a latitude and longitude in iOS Simulator
`
`Carrier 'e"
`
`2:29 PM
`
`Search or enter an addlE‘SS
`
`I"
`
`Change the Sim ulated Device a nd iOS Version
`
`iOS Simulator provides the ability to simulate six devices:
`
`iPhone
`
`iPhone Retina (3.5-inch)
`
`iPhone Retina (4-inch)
`
`2013-10-22
`
`| Copyright@ 2013 Apple lnc.AII Rights Rfierved.
`
`13
`
`
`
`Getting Started in iOS Simulator
`Change the Simulated Device and iOS Version
`
`iPhone Retina (4-inch 64-bit)
`
`iPad
`
`iPad Retina
`
`Note: Use the simulated iPad to test apps for the iPad mini.
`
`In addition to simulating various hardware devices, you can also change the simulated software version. Each
`simulated software version is considered its own simulation environment, and each simulation environment
`
`has its own settings and applications. There are two software versions available:
`
`iOS 6.1
`
`iOS 7.0
`
`
`
`Important: Not all hardware software combinationsare available. Any limitations in hardware are mirrored
`in iOS Simulator.
`
`
`
`
`
`To change the device you’re simulating to an iPad running iOS 6.1, choose Hardware > Device > iPad > iOS
`6.1. If iOS 6.1 is not listed as an option in the menu, you need to download the legacy simulator in Xcode and
`then relaunch iOS Simulator.
`
`To download a legacy simulator
`
`1.
`
`2.
`
`In Xcode, choose Xcode > Preferences.
`
`In the Preferences window, click Downloads.
`
`2013-10-22 | Copyright © 2013 Apple Inc. All Rights Reserved.
`
`14
`
`
`
`Getting Started in iOS Simulator
`Change the Simulated Device and iOS Version
`
`3.
`
`In Components, find the legacy simulator version you want to add, and click the Install button.
`
`Figure 1-5
`
`iOS Simulator displays a simulated iPad running iOS 6.?
`
`M :35; AM
`
`Emu-m
`
`Newnskmd
`
`
`
`
`
`The iOS Simulator display you saw in Figure 1-2 (page 10) changes from an iPhone running iOS 7.0 to an iPad
`running 505 6.1, as shown in Figure 1-5.
`
`Because the Passbook app is available only on iPhone, its icon, which was visible in Figure 1-2 (page 10) for
`iPhone, is not visible in Figure 1—5 for iPad. Additionally, since the new user interface (Ul) was first introduced
`in iOS 7.0, notice that the simulated iPad running iOS 6.1 is now displaying the old UI and icon designs.
`
`2013-10-22
`
`| Copyright © 2013 Apple Inc. All Rights Raerved.
`
`15
`
`
`
`Getting Started in iOS Simulator
`Change the Simulated Device and iOS Version
`
`If you are using a computer whose screen isn't large enough todisplay an entire simulated iPad, only the screen
`of the iPad isdisplayed, not the device border around it. If this istrue for you, you must access the Home screen
`though the Hardware menu.
`
`If you are testingan iPad app, you can test only on a simulated iPad. If you are testing an iPhone or a universal
`app, you can test on either a simulated iPhone or a simulated iPad.
`
`2013-10-22 | Copyright © 2013 Apple Inc. All Rights Reserved.
`
`16
`
`
`
`Getting Started in iOS Simulator
`Alter the Settings in iOS Simulator
`
`Alter the Settings in iOS Simulator
`
`You can alter the settings within iOS Simulator to help test your app. To open the Settings app in iOS Simulator,
`go to the Home screen in iOS Simulator and click Settings. In Figure 1-6 you see the Settings app as it appears
`when launched in the iOS 6.1 simulation environment.
`
`Figure 1-6
`
`Example ofthe Settings app in a simulated iPad device
`
`
`Settings
`General
`
`About
`
`Keyboard
`
`lntemational
`
`Accessibility
`Reset
`
`>
`
`)
`
`>
`
`>
`>
`
`“ Bluetouth
`‘7‘
`
`a Privacy
`
`Tw- Maps
`
`w Safari
`
`Off
`
`
`
`2013-1022 | Copyright CG 2013 Apple Inc. All Rights Rfierved.
`
`17
`
`
`
`Getting Started in iOS Simulator
`Rotate the Device
`
`The iOS Simulator settings differ from the settings found on a hardware device. iOS Simulator is designed for
`testing your apps, whereas a hardware device isdesigned for use. Because iOS Simulator is designed for testing
`apps, its settings are naturally focused on testing too. For example, in iOS Simulator the Accessibility menu
`provides the ability to turn on the Accessibility Inspector, and the Accessibility menu on a device a News you
`to turn on and off different accessibility features.
`
`Through the settings, you can test both accessibility and localization of your app. See "Testi ng a nd Debugging
`in iOS Simulator" (page 30) for information on how to manipulate your settings for the various types of testing
`you are interested in.
`
`Remember: Changes made in the Settings app of iOS Simulator affect only the simulation
`environment that is currently running.
`
`Rotate the Device
`
`You can use iOS Simulator to manipulate the simulated device much as you do a physical device.
`
`2013-10-22 | Copyright © 2013 Apple Inc. All Rights Reserved.
`
`18
`
`
`
`Getting Started in iOS Simulator
`Test in iOS Simulator and on 3 Device
`
`To rotate your simulated device, choose Hardware > Rotate Left. When you rotate your simulated device, you
`see that Settings rotates (see Figure 1-7),just as it would on a hardware device.
`
`u. _
`
`>
`
`>
`>
`
`)
`
`)
`
`Figure 1-7
`a
`vs:
`
`'-n
`
`.
`
`A rotated simulated iPad running in the iOS 6.! simulation environment
`los Simulator - iFdd Retina ,1 1056.1[103141l
`-
`"r'
`
`Settings
`
`General
`
`u Bluetooth
`,i
`Lil General
`
`u Privacy
`—
`TV Maps
`
`m Safari
`
`* Photos 8: Camera
`
`a Twitter
`
`About
`
`Keyboard
`Intemalional
`
`AccessabIllty
`
`Reset
`
`
`
`Test in iOS Simulator and on a Device
`
`iOS Simulator is designed to assist you in designing, rapidly prototyping, and testing your app, but it should
`never serve as your sole platform for testing. One reason is that not all apps are available in the simulator. For
`example, the Camera app is available only on hardware devices and cannot be replicated in the simulator.
`
`In addition, not all bugs and performance problems can be caught through testing in iOS Simulator alone.
`You’ll learn more about performance limitations in ”Testing and Debugging in iOS Simulator" (page 30). You
`
`can also find more information on testing your app on a device in “Launching Your App on Devices” in App
`Dr's Iriburr'on Guide.
`
`2013-1022 | Copyright@ 2013 Apple lnc.All Rights Rfierved.
`
`19
`
`
`
`Getting Started in iOS Simulator
`Quit iOS Simulator
`
`Quit iOS Simulator
`
`iOS Simulator continues running until you quit it. Even if you quit Xcode, iOS Simulator continuesto run because
`it isa separate app. To quit iOS Simulator,choose iOS Simulator > Quit iOS Simulator. If Xcode is running, Xcode
`remains open.
`
`2013-10-22 | Copyright © 2013 Apple Inc. All Rights Reserved.
`
`20
`
`
`
`Interacting with iOS Simulator
`
`Interacting with iOS Simulator differs from interacting with an actual device. In this chapter you learn how to:
`
`Simulate hardware actions such as rotate and shake
`
`Simulate Multi-Touch gestures using a mouse and keyboard
`
`Uninstall an app you previously installed in a simulation environment
`
`Copy and paste text and images between the simulator and your Mac
`
`Simulating Hardware Interactions
`
`With iOS Simulator, you can simulate most of the actions a user performs on a device. Table 2-1 lists hardware
`manipulations you can perform in iOS Simulator by using the Hardware menu.
`
`Table 2-1
`
`Manipulating iOS Simulator from the Hardware menu
`
`Menu option
`
`Rotate Left
`
`Hardware action
`
`Rotates the simulator to the left.
`
`Rotate Right
`
`Rotates the simulator to the right.
`
`Shake Gesture
`
`Simulates shaking the device.
`
`Home
`
`Lock
`
`Simulate Memory
`Warning
`
`Toggle In-Call Status Bar
`
`Displays the Home screen of the simulated device.
`
`Displays the Lock screen.
`
`Sends the frontmost app a simulated low-memory warning.
`
`For information on how to handle low-memory situationsl see ”Observing
`Low-Memory Warnings" in iOS App Programming Guide.
`
`Toggles the status bar between its normal state and its in-call state. This
`command shows how your app‘s user interface looks when a user launches
`your app during a call or while navigation is running. The in-call state bar
`is used when a phone call is in progress, a FaceTime call is in progress, or
`Maps in iOS 6 is navigating. The status bar is taller in its in-call state than
`in its normal state.
`
`2013-10—22
`
`| Copyright © 2013 Apple Inc. All Rights Reserved.
`
`21
`
`
`
`Interactingwith iOS Simulator
`Simulating User Gestures
`
`Menu option
`
`Hardware action
`
`Simulate Hardware
`Keyboard
`
`Toggles the software keyboard on an iPad simulator. Turn off the software
`keyboard to simulate using a keyboard dock or wireless keyboard with an
`iPad device.
`
`Note: The Mac’s keyboard can be used as input into the simulator at all
`times.
`
`iOS Uses Same Keyboard
`Layout As 05 X
`
`Automatically selects the iOS keyboard that most closely matches the
`keyboard layout of your Mac.
`
`TV Out
`
`Opens a window simulating a device's TV Out signal.
`
`Note: Several TV Out resolutions are available by choosing Hardware > TV
`Out > desired resolution.
`
`Simulating User Gestures
`
`With iOS Simulator, you can perform traditional Multi-Touch gestures using the mouse and keyboard. Table
`2-2 lists gestures you can perform in iOS Simulator. See iOSHumanlnterface Guidelines for more about gestures.
`
`Note: All gestures can be performed using a mouse or a trackpad.
`
`Table 2-2
`
`Performing gestures in iOS Simulator
`
`Gesture
`
`Desktop action
`
`Tap
`
`Click.
`
`Touch and hold
`
`Press and hold down the mouse button or trackpad.
`
`Double-tap
`Double-click.
`
`
`Drag
`
`Swipe
`
`Flick
`
`Drag.
`
`Drag.
`
`Drag quickly.
`
`2013-1022 | Copyright {C 2013 Apple Inc. All Rights Rfierved.
`
`22
`
`
`
`Interacting with iOS Simulator
`Simulating Keyboards in iOS Simulator
`
`Gesture
`
`Desktop action
`
`Two-finger Drag
`
`1. Place the pointer where you want the two-finger drag to occur.
`
`2. Hold down the Option key.
`
`3. Move the circles that represent finger touches to the start position.
`
`4. Move the center of the pinch target by holding down the Shift key, moving the
`circles to the desired center position, and releasing the Shift key.
`
`5. Hold down the Shift key and the mouse button, move the circles in the direction
`you want to drag, and release both the Shift key and the mouse button.
`
`Pinch
`
`1. Place the pointer where you want the pinch to occur.
`
`2. Hold down the Option key.
`
`3. Move the circles that represent finger touches to the start position.
`
`4. Move the center of the pinch target by holding down the Shift key, moving the
`circles to the desired center position, and releasing the Shift key.
`
`5. Hold down the mouse button, move the circles in and out to the end position,
`and release the Option key.
`
`Rotate
`
`1. Place the pointer where you want the rotation to occur.
`
`2. Hold down the Option key.
`
`3. Move the circles that represent finger touches to the start position.
`
`4. Move the center of the pinch target by holding down the Shift key, moving the
`circles to the desired center position, and releasing the Shift key.
`
`5. Hold down the mouse button, rotate the circles to the end position, and release
`the Option key.
`
`Simulating Keyboards in iOS Simulator
`In orderfor you to most accurately simulate a device on iOS Simulator, the simulator uses iOS keyboard layouts,
`as opposed to OS X keyboard layouts. lfyou have the option, iOS Uses Same Keyboard Layout As OS X, selected,
`iOS simulator selects the keyboard that most closely matches the keyboard layout of your Mac. For most cases
`you want to leave this checked, but if you do feel a need to disable itiallowing you to select completely
`different keyboard layouts for your Mac and iOS Simulator—simply choose Hardware > iOS Uses Same Keyboard
`Layout As OS X.
`
`In addition to using the keyboard that most closely matches your Mac keyboard layout, you can also manually
`select a keyboard layout through the iOS Simulator settings. This approach can be helpful if you‘re using a
`keyboard layout that iOS Simulator cannot automatically associate with a keyboard.
`
`2013-10—22
`
`| Copyright © 2013 Apple Inc. All Rights Reserved.
`
`23
`
`
`
`Interacting with iOS Simulator
`Installing and Uninstalling Apps
`
`To change a hardware keyboard layout in iOS Simulator
`
`1- Open Settings from the Home screen, and select General.
`
`2-
`
`3-
`
`4-
`
`Select Keyboard.
`
`Select Keyboards.
`
`Select the keyboard language you want to change the hardware layout for.
`
`5. Under Hardware Keyboard Layout, select the desired keyboard layout.
`
`Installing and Uninstalling Apps
`
`When you build your app for iOS Simulator, Xcode automatically installs it in the selected simulation
`environment. In the same way that the Maps app disappears when you switch from the 6.0 simulation
`environment to the 5.1 simulation environment, your own apps exist only within the specific simulation
`environments where you installed them.
`
`Note: You cannot install apps from the App Store in simulation environments.
`
`To uninstall apps that you have installed in a simulation environment
`
`1.
`
`2.
`
`Select the simulation environment from which to remove the app by choosing Hardware > Version >
`iOS version.
`
`Place the pointer on the icon of the app you want to uninstall, and then press and hold down the
`mouse button or trackpad until the icons start to jiggle and a close button appears.
`
`3- Click the close button on the app you want to uninstall from the simulation environment.
`
`4- Click the Home button, or if the Home button is not visible, choose Hardware > Home to stop the icons
`
`from jiggling.
`
`Copying and Pasting in iOS Simulator
`
`iOS Simulator provides a variety of copy and paste operations, both within the simulator and between the
`simulatorand your Mac. The actual copy and paste operations in iOS Simulator are performed in the same way
`they are on an iOS device, but if you are trying to copy and paste between the simulator and your Mac, additional
`steps must be taken. Copy and paste operations can be used on strings and images.
`
`If you are copying an image from a webpage in iOS Simulator, you need to save it to the Photos app first.
`
`2013-10—22
`
`| Copyright © 2013 Apple Inc. All Rights Reserved.
`
`24
`
`
`
`Interacting with iOS Simulator
`Copying and Pasting in iOS Simulator
`
`To save an image from a webpage to the Photos app
`
`1.
`
`Press and hold down the mouse button or trackpad on the image you want to save.
`
`2. When the menu appears, click Save Image to save the image to the Photos app in iOS Simulator.
`
`
`
`
`The image is saved to the Saved Photos album in the Photos app.
`
`To copy an image in iOS Simulator
`
`1. Open the photo you want to copy in the Photos app.
`
`2013-1022 | Copyright CG 2013 Apple Inc. All Rights Rfierved.
`
`25
`
`
`
`Interacting with iOS Simulator
`Copying and Pasting in iOS Simulator
`
`2.
`
`Press and hold down the mouse button or trackpad on the image you want to copy.
`
`
`
`
`3.
`
`4.
`
`Click Copy.
`
`If you intend to paste the image on your Mac outside of iOS Simulator, choose Edit > Copy.
`
`This copies the image to the Mac’s pasteboard. To paste the image in another app on the Mac, use
`that app’s paste command.
`
`To copy text in iOS Simulator
`
`1.
`
`Click the insertion point to display the selection buttons.
`
`Jchfl Smilh
`
`Seiect
`
`
`Select All
`
`2.
`
`Click the Select button to select the adjacent word, or click Select All to select all text.
`
`3. Drag the grab points to select more or less text.
`
`2013-10-22
`
`| Copyright@ 2013 Apple lnc.AII Rights Rfiewed.
`
`26
`
`
`
`Interactingwith iOS Simulator
`Copying and Pasting in iOS Simulator
`
`4.
`
`Click Copy.
`
`
`1mm 2mm
`Copy
`Defim
`
`Cut
`
`5.
`
`If you are pasting the text on your Mac outside of iOS Simulator, choose Edit > Copy.
`
`This copies the text to the Mac's pasteboard. To paste the text in another app on the Mac, use that
`app's paste command.
`
`To paste an image into iOS Simulator
`
`1.
`
`If the image you are pasting was copied from your Mac, choose Edit > Paste.
`
`This action copies the image from the Mac’s pasteboard to the simulator’s pasteboard.
`
`2. Navigate to the location where you want to paste the image you just copied.
`
`3.
`
`Press and hold down the mouse button or trackpad in the location where you want to paste your
`copied image, and then click Paste.
`
`To paste text into iOS Simulator
`
`1-
`
`If the text you are pasting was copied from your Mac, choose Edit > Paste.
`
`This action copies the text from the Mac’s pasteboard to the simulator’s pasteboard.
`
`2. Navigate to the location where you want to paste the text you just copied.
`
`3. Double-click in the location where you want to paste the text, and then click Paste.
`
`2013-1022 | Copyright {C 2013 Apple Inc. All Rights Rfierved.
`
`27
`
`
`
`Interacting with iOS Simulator
`Taking a Screenshot ofthe Simulator
`
`Taking a Screenshot ofthe Simulator
`
`In iOS Simulator you can copy a screenshot of the simulator to your Mac's pasteboard, or you can save a copy
`ofthe screenshot as a file.
`
`To take a screenshot and save it to you:r Mac's pasteboard, choose Edit > Copy Screen.
`
`To save a screenshot as a file, choose File > Save Screen Shot.The screenshot is saved to the desktop of
`your Mac.
`
`Viewing the Simulated Device's Screen
`
`Even though iOS Simulator runs on all Macs, how it appears may differ between models. If you are using a
`computer whose screen is not large enough to display the entire simulator, only the screen of the simulated
`iOS device is shown, not the device border around it.
`
`You can scale iOS Simulator by choosing Window > Scale > percentage ofchoice , but scaling shows only the
`device screen for any size other than 100 percent. For other scaling sizes, only the screen of the device is
`simulated, as shown in Figure 2-1.
`
`Figure 2-1
`
`iOS Simulator scaled to 100 percent (left) and 7’5 percent (right)
`
`in 3-1 JIM
`
`2013-10-22
`
`| Copyright Cr; 2013 Apple lnc.All Rights Raerved.
`
`28
`
`
`
`Interacting with iOS Simulator
`Viewing the Simulated Device’s Screen
`
`Testing Retina and Non-Retina Display Devices
`
`With iOS Simulator, you can simulate iOS devices both with and without Retina displays, regard less of whether
`you have a Mac with Retina display.
`
`Note: The following equivalencies pertain when iOS Simulator is scaled to 100 percent;when scaled
`
`differently, the equivalencies scale in the same manner.
`
`When working on a Mac without a Retina display, the simulator is mapped from pixel to pixel instead of from
`point to point. When simulating an app for an iOS device with Retina display on a Mac without a Retina display,
`the simulator appears twice as large as it would for a non-Retina display app to account for the extra pixels in
`a Retina display.
`
`When working on a Mac with Retina display, your computer maps each point in the iOS app to a point on the
`Mac’s screen. If the simulated app is for an iOS device with a Retina display, each point is composed of 1 pixel.
`If the app being simulated is for an iOS device without a Retina displayl each point is composed of 2 pixels.
`
`To learn more about mapping points to pixels, see "Points Versus Pixels" in Drawing anal Printing Guide for iOS.
`
`2013-10-22 | Copyright © 2013 Apple Inc. All Rights Reserved.
`
`29
`
`
`
`Testing and Debugging in iOS Simulator
`
`iOS Simulator is a great tool for rapid prototyping and development before testing your app on a device. iOS
`Simulator also has features that can assist you in testing and debugging both iOS apps and web apps. By
`understanding the tools that iOS Simulator offers, you can more efficiently develop your app.
`
`Limitations of Testing in iOS Simulator
`
`Even though iOS Simulator is a useful tool, never make it the only way you test an app. Because iOS Simulator
`is an app running on a Mac, it has access to the computer's memory, which is much greater than the memory
`found on a device. As a result ofthe increased memory, iOS Simulator is not an accurate test ofan app’s memory
`usage. For this same reason, you should always test the performance of your app‘s user interface (UI) on a
`device. In iOS Simulator, your app's Ul may appear to run both faster and smoother than on a device.
`
`Also keep in mind that some Ul elements can be easier to interact with in iOS Simulator using a mouse than
`
`when trying to interact with the app via touch on a device.
`
`Finally, there are some hardware and API limitations of iOS Simulator. These limitations may affect your app
`when testing in iOS Simulator.
`
`Hardware Limitations
`
`While most of the functionality of iOS devices can be simulated in iOS Simulator, there are some hardware
`features that must be tested directly on a device. The hardware features that cannot be simulated are:
`
`Accelerometer
`
`Gyroscope
`Camera
`
`Proximity Sensor
`
`Microphone Input
`
`To test your app on a device, you must be a member of the iOS Developer Program. To learn more about
`enrolling in the iOS Developer Program, see "Managing Accounts" in App Distribution Guide.
`
`2013-10—22
`
`| Copyright © 2013 Apple Inc. All Rights Reserved.
`
`30
`
`
`
`Testing and Debugging in iOS Simulator
`Limitations of Testing in iOS Simulator
`
`OpenGL ES Limitations
`
`iOS Simulator includes complete implementations of OpenGL ES 1.1, 2.0, and 3.0 that you can use to start
`developing your app. The capabilities of iOS Simulator are similar to those of the A7 GPU; for more information
`on the iOS hardware, see :05 Device Compatibility Reference . iOS Simulator differs from the hardware processor
`in a few ways:
`
`iOS Simulator does not use a ti le-based deferred renderer.
`
`iOS Simulator does not provide a pixel-accurate match to the graphics hardware.
`
`Rendering performance of OpenGL ES in iOS Simulator has no relation to the performance of OpenGL E5
`on an actual device.
`
`
`
`Important: The OpenGL ES support in iOS Simulator should be used to help you get started writing an
`OpenGL ES app. Never assume that iOS Simulator reflects the real-world performance or the precise
`
`capabilities of the graphics processors used in iOS devices Always profile and optimize your drawing code
`on a real device.
`
`
`
`
`
`API Limitations
`
`Within iOS Simulator, there are some limitations to the APIs and features, including:
`
`Apple Push Services
`
`Privacy alerts for access to Photos, Contacts, Calendar, and Reminders
`
`The UI Bac kg roundModes key
`
`iCloud document syncing and key-value storage support
`
`Unsupported frameworks include:
`
`External Accessory
`
`Media Player
`
`M