MicroStrategy ONE
Cache Manager Sample in iOS
Sample name: MSICacheManager
Functionality showcased: This sample illustrates how to manage the cache. In this sample, the application reloads every minute, between 10 am and 4 pm. Whenever the user launches the application during this time period, the caches are automatically deleted. The home document is refreshed every 60 seconds, as the application deletes the cache for the home document and fetches it again.
Using the sample: The following instructions will help you deploy this sample to your mobile device or simulator.
- Install the Mobile SDK on your development machine.
On a Mac® computer, go to the MicroStrategy Download site and download the iOS Client file for the latest Mobile SDK.
The latest Mobile SDK may or may not be the same version as the version of Intelligence Server you are using.
Double-click the downloaded MicroStrategy Mobile SDK.dmg file.
Click Agree to accept the terms of the license agreement. This opens the disk image.
Copy all the folders to your local drive.
Eject the disk image.
-
Build and deploy the sample.
-
Download the .zip file containing the custom files for the sample and unzip it to a location on your machine.
- Launch the MicroStrategy Mobile project in Xcode®. Double-click MicroStrategyMobile.xcodeproj.
-
Add the custom files for the sample to the project.
- Expand MicroStrategyMobile, right-click the Custom folder, and choose "Add Files to "MicroStrateg Mobile.
- Navigate to the location where you unzipped the custom files for the sample and select them.
- Make sure the check box for Destination: Copy items if needed is not selected.
- Select the radio button for Added folders: Create folder references.
- Select the appropriate check boxes for Add to targets.
-
Click Add. The files are added to the Custom folder.
-
Click the Run button to compile and deploy the application to a simulator. Confirm that it compiles and deploys successfully.
To upload the application to a device, set the destination in the scheme to the mobile device and then build and run. For other requirements on deploying to a device, refer to documentation from Apple. You can access useful links to the Apple documentation from the Distributing iPhone or iPad Applications topic.
-
-
Use the sample.
Launch the MSICacheManager application from the mobile device or simulator.
See also