├── UXSDKDemo ├── Assets.xcassets │ ├── Contents.json │ ├── btn.imageset │ │ ├── btn.png │ │ ├── btn-1.png │ │ ├── btn-2.png │ │ └── Contents.json │ ├── playVideo.imageset │ │ ├── playVideo.png │ │ ├── playVideo-1.png │ │ ├── playVideo-2.png │ │ └── Contents.json │ ├── playback_icon.imageset │ │ ├── playback_icon@2x.png │ │ └── Contents.json │ ├── playback_icon_iPad.imageset │ │ ├── playback_icon_iPad@2x.png │ │ └── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── DefaultLayoutViewController.h ├── AppDelegate.h ├── main.m ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.m ├── Info.plist └── DefaultLayoutViewController.m ├── Podfile ├── LICENSE ├── .gitignore ├── README.md └── UXSDKDemo.xcodeproj └── project.pbxproj /UXSDKDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/btn.imageset/btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DJI-Mobile-SDK-Tutorials/iOS-UXSDKDemo/HEAD/UXSDKDemo/Assets.xcassets/btn.imageset/btn.png -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/btn.imageset/btn-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DJI-Mobile-SDK-Tutorials/iOS-UXSDKDemo/HEAD/UXSDKDemo/Assets.xcassets/btn.imageset/btn-1.png -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/btn.imageset/btn-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DJI-Mobile-SDK-Tutorials/iOS-UXSDKDemo/HEAD/UXSDKDemo/Assets.xcassets/btn.imageset/btn-2.png -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/playVideo.imageset/playVideo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DJI-Mobile-SDK-Tutorials/iOS-UXSDKDemo/HEAD/UXSDKDemo/Assets.xcassets/playVideo.imageset/playVideo.png -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/playVideo.imageset/playVideo-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DJI-Mobile-SDK-Tutorials/iOS-UXSDKDemo/HEAD/UXSDKDemo/Assets.xcassets/playVideo.imageset/playVideo-1.png -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/playVideo.imageset/playVideo-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DJI-Mobile-SDK-Tutorials/iOS-UXSDKDemo/HEAD/UXSDKDemo/Assets.xcassets/playVideo.imageset/playVideo-2.png -------------------------------------------------------------------------------- /Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '9.0' 2 | 3 | target 'UXSDKDemo' do 4 | use_frameworks! 5 | pod 'DJI-SDK-iOS', '~> 4.16.1' 6 | pod 'DJI-UXSDK-iOS', '~> 4.14' 7 | pod 'DJIWidget', '~> 1.6.4' 8 | end 9 | -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/playback_icon.imageset/playback_icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DJI-Mobile-SDK-Tutorials/iOS-UXSDKDemo/HEAD/UXSDKDemo/Assets.xcassets/playback_icon.imageset/playback_icon@2x.png -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/playback_icon_iPad.imageset/playback_icon_iPad@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DJI-Mobile-SDK-Tutorials/iOS-UXSDKDemo/HEAD/UXSDKDemo/Assets.xcassets/playback_icon_iPad.imageset/playback_icon_iPad@2x.png -------------------------------------------------------------------------------- /UXSDKDemo/DefaultLayoutViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DefaultLayoutViewController.h 3 | // UILibraryDemo 4 | // 5 | // Created by DJI on 16/4/2017. 6 | // Copyright © 2017 DJI. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface DefaultLayoutViewController : DUXDefaultLayoutViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /UXSDKDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // UILibraryDemo 4 | // 5 | // Created by DJI on 15/4/2017. 6 | // Copyright © 2017 DJI. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /UXSDKDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // UILibraryDemo 4 | // 5 | // Created by DJI on 15/4/2017. 6 | // Copyright © 2017 DJI. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/playback_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "playback_icon@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/playback_icon_iPad.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "playback_icon_iPad@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/btn.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "btn-1.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "btn-2.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "btn.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/playVideo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "playVideo.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "playVideo-1.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "playVideo-2.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | The MIT License (MIT) 3 | Copyright (c) 2018 DJI 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | .DS_Store 5 | 6 | ## Build generated 7 | build/ 8 | DerivedData 9 | Pods/ 10 | Podfile.lock 11 | 12 | ## Various settings 13 | *.pbxuser 14 | !default.pbxuser 15 | *.mode1v3 16 | !default.mode1v3 17 | *.mode2v3 18 | !default.mode2v3 19 | *.perspectivev3 20 | !default.perspectivev3 21 | xcuserdata 22 | 23 | ## Other 24 | *.xccheckout 25 | *.moved-aside 26 | *.xcuserstate 27 | *.xcscmblueprint 28 | Podfile.lock 29 | 30 | *.xcworkspace 31 | 32 | ## Obj-C/Swift specific 33 | *.hmap 34 | *.ipa 35 | *.xcworkspace 36 | 37 | # CocoaPods 38 | # 39 | # We recommend against adding the Pods directory to your .gitignore. However 40 | # you should judge for yourself, the pros and cons are mentioned at: 41 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 42 | # 43 | #Pods/ 44 | 45 | # Carthage 46 | # 47 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 48 | # Carthage/Checkouts 49 | 50 | Carthage/Build 51 | 52 | build 53 | Output 54 | -------------------------------------------------------------------------------- /UXSDKDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /UXSDKDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | } 88 | ], 89 | "info" : { 90 | "version" : 1, 91 | "author" : "xcode" 92 | } 93 | } -------------------------------------------------------------------------------- /UXSDKDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /UXSDKDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // UILibraryDemo 4 | // 5 | // Created by DJI on 15/4/2017. 6 | // Copyright © 2017 DJI. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | 24 | - (void)applicationWillResignActive:(UIApplication *)application { 25 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 26 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 27 | } 28 | 29 | 30 | - (void)applicationDidEnterBackground:(UIApplication *)application { 31 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 32 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 33 | } 34 | 35 | 36 | - (void)applicationWillEnterForeground:(UIApplication *)application { 37 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 38 | } 39 | 40 | 41 | - (void)applicationDidBecomeActive:(UIApplication *)application { 42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 43 | } 44 | 45 | 46 | - (void)applicationWillTerminate:(UIApplication *)application { 47 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 48 | } 49 | 50 | 51 | @end 52 | -------------------------------------------------------------------------------- /UXSDKDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | DJISDKAppKey 22 | YOUR APP KEY GOES HERE 23 | LSRequiresIPhoneOS 24 | 25 | NSAppTransportSecurity 26 | 27 | NSAllowsArbitraryLoads 28 | 29 | 30 | NSBluetoothAlwaysUsageDescription 31 | Bluetooth Use is Required for Mobile SDK Osmo Support 32 | NSLocationWhenInUseUsageDescription 33 | Gets location of the phone to calculate distance to aircraft 34 | NSPhotoLibraryUsageDescription 35 | 36 | UILaunchStoryboardName 37 | LaunchScreen 38 | UIMainStoryboardFile 39 | Main 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedExternalAccessoryProtocols 45 | 46 | com.dji.video 47 | com.dji.protocol 48 | com.dji.common 49 | 50 | UISupportedInterfaceOrientations 51 | 52 | UIInterfaceOrientationLandscapeLeft 53 | UIInterfaceOrientationLandscapeRight 54 | 55 | UISupportedInterfaceOrientations~ipad 56 | 57 | UIInterfaceOrientationPortrait 58 | UIInterfaceOrientationPortraitUpsideDown 59 | UIInterfaceOrientationLandscapeLeft 60 | UIInterfaceOrientationLandscapeRight 61 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /UXSDKDemo/DefaultLayoutViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // DefaultLayoutViewController.m 3 | // UILibraryDemo 4 | // 5 | // Created by DJI on 16/4/2017. 6 | // Copyright © 2017 DJI. All rights reserved. 7 | // 8 | 9 | #import "DefaultLayoutViewController.h" 10 | 11 | @interface DefaultLayoutViewController () 12 | 13 | @end 14 | 15 | @implementation DefaultLayoutViewController 16 | 17 | - (void)viewDidLoad 18 | { 19 | [super viewDidLoad]; 20 | 21 | //Please enter your App Key in the info.plist file. 22 | [DJISDKManager registerAppWithDelegate:self]; 23 | 24 | } 25 | 26 | - (void)showAlertViewWithMessage:(NSString *)message 27 | { 28 | dispatch_async(dispatch_get_main_queue(), ^{ 29 | UIAlertController* alertViewController = [UIAlertController alertControllerWithTitle:nil message:message preferredStyle:UIAlertControllerStyleAlert]; 30 | UIAlertAction* okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]; 31 | [alertViewController addAction:okAction]; 32 | UIViewController *rootViewController = [[UIApplication sharedApplication] keyWindow].rootViewController; 33 | [rootViewController presentViewController:alertViewController animated:YES completion:nil]; 34 | }); 35 | 36 | } 37 | 38 | #pragma mark DJISDKManager Delegate Methods 39 | - (void)appRegisteredWithError:(NSError *)error 40 | { 41 | if (!error) { 42 | [self showAlertViewWithMessage:@"Registration Success"]; 43 | [DJISDKManager startConnectionToProduct]; 44 | }else 45 | { 46 | [self showAlertViewWithMessage:[NSString stringWithFormat:@"Registration Error:%@", error]]; 47 | } 48 | } 49 | 50 | - (void)productConnected:(DJIBaseProduct *)product 51 | { 52 | 53 | //If this demo is used in China, it's required to login to your DJI account to activate the application. Also you need to use DJI Go app to bind the aircraft to your DJI account. For more details, please check this demo's tutorial. 54 | [[DJISDKManager userAccountManager] logIntoDJIUserAccountWithAuthorizationRequired:NO withCompletion:^(DJIUserAccountState state, NSError * _Nullable error) { 55 | if (error) { 56 | NSLog(@"Login failed: %@", error.description); 57 | } 58 | }]; 59 | } 60 | 61 | 62 | @end 63 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iOS-UXSDKDemo 2 | 3 | ## Introduction 4 | 5 | This UXSDKDemo is design for you to gain a basic understanding of the DJI iOS UX SDK. You will learn how to use DJI iOS UX SDK and DJI iOS SDK to create a fully functioning mini-DJI Go app easily, with standard DJI Go UIs and functionalities. 6 | 7 | ## Requirements 8 | 9 | - iOS 9.0+ 10 | - Xcode 8.0+ 11 | - DJI iOS SDK 4.16.1 12 | - DJI iOS UX SDK 4.14 13 | - DJIWidget 1.6.4 14 | 15 | ## SDK, UX SDK and DJIWidget Installation with CocoaPods 16 | 17 | Since this project has been integrated with [DJI iOS SDK CocoaPods](https://cocoapods.org/pods/DJI-SDK-iOS) now, please check the following steps to install **DJISDK.framework** using CocoaPods after you downloading this project: 18 | 19 | **1.** Install CocoaPods 20 | 21 | Open Terminal and change to the download project's directory, enter the following command to install it: 22 | 23 | ~~~ 24 | sudo gem install cocoapods 25 | ~~~ 26 | 27 | The process may take a long time, please wait. For further installation instructions, please check [this guide](https://guides.cocoapods.org/using/getting-started.html#getting-started). 28 | 29 | **2.** Install SDK and DJIWidget with CocoaPods in the Project 30 | 31 | Run the following command in the project's path: 32 | 33 | ~~~ 34 | pod install 35 | ~~~ 36 | 37 | If you install it successfully, you should get the messages similar to the following: 38 | 39 | ~~~ 40 | Analyzing dependencies 41 | Downloading dependencies 42 | Installing DJI-SDK-iOS (4.16.1) 43 | Installing DJI-UXSDK-iOS (4.14) 44 | Installing DJIWidget (1.6.4) 45 | Generating Pods project 46 | Integrating client project 47 | 48 | [!] Please close any current Xcode sessions and use `UXSDKDemo.xcworkspace` for this project from now on. 49 | Pod installation complete! There is 1 dependency from the Podfile and 1 total pod 50 | installed. 51 | ~~~ 52 | 53 | > **Note**: If you saw "Unable to satisfy the following requirements" issue during pod install, please run the following commands to update your pod repo and install the pod again: 54 | > 55 | > ~~~ 56 | > pod repo update 57 | > pod install 58 | > ~~~ 59 | 60 | ## Tutorial 61 | 62 | For this demo's tutorial: **Getting Started with DJI UX SDK**, please refer to . 63 | 64 | ## Feedback 65 | 66 | We’d love to hear your feedback for this demo and tutorial. 67 | 68 | Please use **DJI Developer Forum** [dji-forum](https://forum.dji.com/forum-139-1.html?from=developer) or **email** [dev@dji.com](dev@dji.com) when you meet any problems of using this demo. At a minimum please let us know: 69 | 70 | * Which DJI Product you are using? 71 | * Which iOS Device and iOS version you are using? 72 | * A short description of your problem includes debug logs or screenshots. 73 | * Any bugs or typos you come across. 74 | 75 | ## License 76 | 77 | iOS-UXSDKDemo is available under the MIT license. Please see the LICENSE file for more info. 78 | 79 | 80 | ## Join Us 81 | 82 | DJI is looking for all kinds of Software Engineers to continue building the Future of Possible. Available positions in Shenzhen, China and around the world. If you are interested, please send your resume to . For more details, and list of all our global offices, please check . 83 | 84 | DJI 招软件工程师啦,based在深圳,如果你想和我们一起把DJI产品做得更好,请发送简历到 . 详情请浏览 . 85 | -------------------------------------------------------------------------------- /UXSDKDemo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | A452DC652070DCFC00EFBA30 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A452DC5A2070DCFC00EFBA30 /* AppDelegate.m */; }; 11 | A452DC662070DCFC00EFBA30 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A452DC5B2070DCFC00EFBA30 /* Assets.xcassets */; }; 12 | A452DC672070DCFC00EFBA30 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A452DC5C2070DCFC00EFBA30 /* LaunchScreen.storyboard */; }; 13 | A452DC682070DCFC00EFBA30 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A452DC5E2070DCFC00EFBA30 /* Main.storyboard */; }; 14 | A452DC692070DCFC00EFBA30 /* DefaultLayoutViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A452DC612070DCFC00EFBA30 /* DefaultLayoutViewController.m */; }; 15 | A452DC6B2070DCFC00EFBA30 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A452DC632070DCFC00EFBA30 /* main.m */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXCopyFilesBuildPhase section */ 19 | A48847EA1EA26AFF00CE5843 /* Embed Frameworks */ = { 20 | isa = PBXCopyFilesBuildPhase; 21 | buildActionMask = 2147483647; 22 | dstPath = ""; 23 | dstSubfolderSpec = 10; 24 | files = ( 25 | ); 26 | name = "Embed Frameworks"; 27 | runOnlyForDeploymentPostprocessing = 0; 28 | }; 29 | /* End PBXCopyFilesBuildPhase section */ 30 | 31 | /* Begin PBXFileReference section */ 32 | A452DC592070DCFC00EFBA30 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 33 | A452DC5A2070DCFC00EFBA30 /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 34 | A452DC5B2070DCFC00EFBA30 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 35 | A452DC5D2070DCFC00EFBA30 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 36 | A452DC5F2070DCFC00EFBA30 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 37 | A452DC602070DCFC00EFBA30 /* DefaultLayoutViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DefaultLayoutViewController.h; sourceTree = ""; }; 38 | A452DC612070DCFC00EFBA30 /* DefaultLayoutViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DefaultLayoutViewController.m; sourceTree = ""; }; 39 | A452DC622070DCFC00EFBA30 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | A452DC632070DCFC00EFBA30 /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 41 | A48847C51EA2697F00CE5843 /* UXSDKDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UXSDKDemo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | /* End PBXFileReference section */ 43 | 44 | /* Begin PBXFrameworksBuildPhase section */ 45 | A48847C21EA2697F00CE5843 /* Frameworks */ = { 46 | isa = PBXFrameworksBuildPhase; 47 | buildActionMask = 2147483647; 48 | files = ( 49 | ); 50 | runOnlyForDeploymentPostprocessing = 0; 51 | }; 52 | /* End PBXFrameworksBuildPhase section */ 53 | 54 | /* Begin PBXGroup section */ 55 | A452DC582070DCFC00EFBA30 /* UXSDKDemo */ = { 56 | isa = PBXGroup; 57 | children = ( 58 | A452DC592070DCFC00EFBA30 /* AppDelegate.h */, 59 | A452DC5A2070DCFC00EFBA30 /* AppDelegate.m */, 60 | A452DC5B2070DCFC00EFBA30 /* Assets.xcassets */, 61 | A452DC5C2070DCFC00EFBA30 /* LaunchScreen.storyboard */, 62 | A452DC5E2070DCFC00EFBA30 /* Main.storyboard */, 63 | A452DC602070DCFC00EFBA30 /* DefaultLayoutViewController.h */, 64 | A452DC612070DCFC00EFBA30 /* DefaultLayoutViewController.m */, 65 | A452DC622070DCFC00EFBA30 /* Info.plist */, 66 | A452DC632070DCFC00EFBA30 /* main.m */, 67 | ); 68 | path = UXSDKDemo; 69 | sourceTree = ""; 70 | }; 71 | A48847BC1EA2697F00CE5843 = { 72 | isa = PBXGroup; 73 | children = ( 74 | A452DC582070DCFC00EFBA30 /* UXSDKDemo */, 75 | A48847C61EA2697F00CE5843 /* Products */, 76 | ); 77 | sourceTree = ""; 78 | }; 79 | A48847C61EA2697F00CE5843 /* Products */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | A48847C51EA2697F00CE5843 /* UXSDKDemo.app */, 83 | ); 84 | name = Products; 85 | sourceTree = ""; 86 | }; 87 | /* End PBXGroup section */ 88 | 89 | /* Begin PBXNativeTarget section */ 90 | A48847C41EA2697F00CE5843 /* UXSDKDemo */ = { 91 | isa = PBXNativeTarget; 92 | buildConfigurationList = A48847DC1EA2697F00CE5843 /* Build configuration list for PBXNativeTarget "UXSDKDemo" */; 93 | buildPhases = ( 94 | A48847C11EA2697F00CE5843 /* Sources */, 95 | A48847C21EA2697F00CE5843 /* Frameworks */, 96 | A48847C31EA2697F00CE5843 /* Resources */, 97 | A48847EA1EA26AFF00CE5843 /* Embed Frameworks */, 98 | ); 99 | buildRules = ( 100 | ); 101 | dependencies = ( 102 | ); 103 | name = UXSDKDemo; 104 | productName = UILibraryDemo; 105 | productReference = A48847C51EA2697F00CE5843 /* UXSDKDemo.app */; 106 | productType = "com.apple.product-type.application"; 107 | }; 108 | /* End PBXNativeTarget section */ 109 | 110 | /* Begin PBXProject section */ 111 | A48847BD1EA2697F00CE5843 /* Project object */ = { 112 | isa = PBXProject; 113 | attributes = { 114 | LastUpgradeCheck = 0810; 115 | ORGANIZATIONNAME = DJI; 116 | TargetAttributes = { 117 | A48847C41EA2697F00CE5843 = { 118 | CreatedOnToolsVersion = 8.1; 119 | ProvisioningStyle = Automatic; 120 | }; 121 | }; 122 | }; 123 | buildConfigurationList = A48847C01EA2697F00CE5843 /* Build configuration list for PBXProject "UXSDKDemo" */; 124 | compatibilityVersion = "Xcode 3.2"; 125 | developmentRegion = English; 126 | hasScannedForEncodings = 0; 127 | knownRegions = ( 128 | English, 129 | en, 130 | Base, 131 | ); 132 | mainGroup = A48847BC1EA2697F00CE5843; 133 | productRefGroup = A48847C61EA2697F00CE5843 /* Products */; 134 | projectDirPath = ""; 135 | projectRoot = ""; 136 | targets = ( 137 | A48847C41EA2697F00CE5843 /* UXSDKDemo */, 138 | ); 139 | }; 140 | /* End PBXProject section */ 141 | 142 | /* Begin PBXResourcesBuildPhase section */ 143 | A48847C31EA2697F00CE5843 /* Resources */ = { 144 | isa = PBXResourcesBuildPhase; 145 | buildActionMask = 2147483647; 146 | files = ( 147 | A452DC682070DCFC00EFBA30 /* Main.storyboard in Resources */, 148 | A452DC662070DCFC00EFBA30 /* Assets.xcassets in Resources */, 149 | A452DC672070DCFC00EFBA30 /* LaunchScreen.storyboard in Resources */, 150 | ); 151 | runOnlyForDeploymentPostprocessing = 0; 152 | }; 153 | /* End PBXResourcesBuildPhase section */ 154 | 155 | /* Begin PBXSourcesBuildPhase section */ 156 | A48847C11EA2697F00CE5843 /* Sources */ = { 157 | isa = PBXSourcesBuildPhase; 158 | buildActionMask = 2147483647; 159 | files = ( 160 | A452DC692070DCFC00EFBA30 /* DefaultLayoutViewController.m in Sources */, 161 | A452DC6B2070DCFC00EFBA30 /* main.m in Sources */, 162 | A452DC652070DCFC00EFBA30 /* AppDelegate.m in Sources */, 163 | ); 164 | runOnlyForDeploymentPostprocessing = 0; 165 | }; 166 | /* End PBXSourcesBuildPhase section */ 167 | 168 | /* Begin PBXVariantGroup section */ 169 | A452DC5C2070DCFC00EFBA30 /* LaunchScreen.storyboard */ = { 170 | isa = PBXVariantGroup; 171 | children = ( 172 | A452DC5D2070DCFC00EFBA30 /* Base */, 173 | ); 174 | name = LaunchScreen.storyboard; 175 | sourceTree = ""; 176 | }; 177 | A452DC5E2070DCFC00EFBA30 /* Main.storyboard */ = { 178 | isa = PBXVariantGroup; 179 | children = ( 180 | A452DC5F2070DCFC00EFBA30 /* Base */, 181 | ); 182 | name = Main.storyboard; 183 | sourceTree = ""; 184 | }; 185 | /* End PBXVariantGroup section */ 186 | 187 | /* Begin XCBuildConfiguration section */ 188 | A48847DA1EA2697F00CE5843 /* Debug */ = { 189 | isa = XCBuildConfiguration; 190 | buildSettings = { 191 | ALWAYS_SEARCH_USER_PATHS = NO; 192 | CLANG_ANALYZER_NONNULL = YES; 193 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 194 | CLANG_CXX_LIBRARY = "libc++"; 195 | CLANG_ENABLE_MODULES = YES; 196 | CLANG_ENABLE_OBJC_ARC = YES; 197 | CLANG_WARN_BOOL_CONVERSION = YES; 198 | CLANG_WARN_CONSTANT_CONVERSION = YES; 199 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 200 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 201 | CLANG_WARN_EMPTY_BODY = YES; 202 | CLANG_WARN_ENUM_CONVERSION = YES; 203 | CLANG_WARN_INFINITE_RECURSION = YES; 204 | CLANG_WARN_INT_CONVERSION = YES; 205 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 206 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 207 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 208 | CLANG_WARN_UNREACHABLE_CODE = YES; 209 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 210 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 211 | COPY_PHASE_STRIP = NO; 212 | DEBUG_INFORMATION_FORMAT = dwarf; 213 | ENABLE_STRICT_OBJC_MSGSEND = YES; 214 | ENABLE_TESTABILITY = YES; 215 | GCC_C_LANGUAGE_STANDARD = gnu99; 216 | GCC_DYNAMIC_NO_PIC = NO; 217 | GCC_NO_COMMON_BLOCKS = YES; 218 | GCC_OPTIMIZATION_LEVEL = 0; 219 | GCC_PREPROCESSOR_DEFINITIONS = ( 220 | "DEBUG=1", 221 | "$(inherited)", 222 | ); 223 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 224 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 225 | GCC_WARN_UNDECLARED_SELECTOR = YES; 226 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 227 | GCC_WARN_UNUSED_FUNCTION = YES; 228 | GCC_WARN_UNUSED_VARIABLE = YES; 229 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 230 | MTL_ENABLE_DEBUG_INFO = YES; 231 | ONLY_ACTIVE_ARCH = YES; 232 | SDKROOT = iphoneos; 233 | TARGETED_DEVICE_FAMILY = "1,2"; 234 | }; 235 | name = Debug; 236 | }; 237 | A48847DB1EA2697F00CE5843 /* Release */ = { 238 | isa = XCBuildConfiguration; 239 | buildSettings = { 240 | ALWAYS_SEARCH_USER_PATHS = NO; 241 | CLANG_ANALYZER_NONNULL = YES; 242 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 243 | CLANG_CXX_LIBRARY = "libc++"; 244 | CLANG_ENABLE_MODULES = YES; 245 | CLANG_ENABLE_OBJC_ARC = YES; 246 | CLANG_WARN_BOOL_CONVERSION = YES; 247 | CLANG_WARN_CONSTANT_CONVERSION = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 250 | CLANG_WARN_EMPTY_BODY = YES; 251 | CLANG_WARN_ENUM_CONVERSION = YES; 252 | CLANG_WARN_INFINITE_RECURSION = YES; 253 | CLANG_WARN_INT_CONVERSION = YES; 254 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 255 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 256 | CLANG_WARN_SUSPICIOUS_MOVES = YES; 257 | CLANG_WARN_UNREACHABLE_CODE = YES; 258 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 259 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 260 | COPY_PHASE_STRIP = NO; 261 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 262 | ENABLE_NS_ASSERTIONS = NO; 263 | ENABLE_STRICT_OBJC_MSGSEND = YES; 264 | GCC_C_LANGUAGE_STANDARD = gnu99; 265 | GCC_NO_COMMON_BLOCKS = YES; 266 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 267 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 268 | GCC_WARN_UNDECLARED_SELECTOR = YES; 269 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 270 | GCC_WARN_UNUSED_FUNCTION = YES; 271 | GCC_WARN_UNUSED_VARIABLE = YES; 272 | IPHONEOS_DEPLOYMENT_TARGET = 10.1; 273 | MTL_ENABLE_DEBUG_INFO = NO; 274 | SDKROOT = iphoneos; 275 | TARGETED_DEVICE_FAMILY = "1,2"; 276 | VALIDATE_PRODUCT = YES; 277 | }; 278 | name = Release; 279 | }; 280 | A48847DD1EA2697F00CE5843 /* Debug */ = { 281 | isa = XCBuildConfiguration; 282 | buildSettings = { 283 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 284 | DEVELOPMENT_TEAM = ""; 285 | ENABLE_BITCODE = NO; 286 | FRAMEWORK_SEARCH_PATHS = ( 287 | "$(inherited)", 288 | "$(PROJECT_DIR)/Frameworks", 289 | ); 290 | INFOPLIST_FILE = "$(SRCROOT)/UXSDKDemo/Info.plist"; 291 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 292 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 293 | OTHER_LDFLAGS = ( 294 | "$(inherited)", 295 | "-ObjC", 296 | "-framework", 297 | "\"DJISDK\"", 298 | "-framework", 299 | "\"DJIUXSDK\"", 300 | ); 301 | PRODUCT_BUNDLE_IDENTIFIER = com.dji.UXSDKDemo; 302 | PRODUCT_NAME = "$(TARGET_NAME)"; 303 | TARGETED_DEVICE_FAMILY = "1,2"; 304 | VALID_ARCHS = "arm64 arm64e armv7s"; 305 | }; 306 | name = Debug; 307 | }; 308 | A48847DE1EA2697F00CE5843 /* Release */ = { 309 | isa = XCBuildConfiguration; 310 | buildSettings = { 311 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 312 | DEVELOPMENT_TEAM = ""; 313 | ENABLE_BITCODE = NO; 314 | FRAMEWORK_SEARCH_PATHS = ( 315 | "$(inherited)", 316 | "$(PROJECT_DIR)/Frameworks", 317 | ); 318 | INFOPLIST_FILE = "$(SRCROOT)/UXSDKDemo/Info.plist"; 319 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 320 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 321 | OTHER_LDFLAGS = ( 322 | "$(inherited)", 323 | "-ObjC", 324 | "-framework", 325 | "\"DJISDK\"", 326 | "-framework", 327 | "\"DJIUXSDK\"", 328 | ); 329 | PRODUCT_BUNDLE_IDENTIFIER = com.dji.UXSDKDemo; 330 | PRODUCT_NAME = "$(TARGET_NAME)"; 331 | TARGETED_DEVICE_FAMILY = "1,2"; 332 | VALID_ARCHS = "arm64 arm64e armv7s"; 333 | }; 334 | name = Release; 335 | }; 336 | /* End XCBuildConfiguration section */ 337 | 338 | /* Begin XCConfigurationList section */ 339 | A48847C01EA2697F00CE5843 /* Build configuration list for PBXProject "UXSDKDemo" */ = { 340 | isa = XCConfigurationList; 341 | buildConfigurations = ( 342 | A48847DA1EA2697F00CE5843 /* Debug */, 343 | A48847DB1EA2697F00CE5843 /* Release */, 344 | ); 345 | defaultConfigurationIsVisible = 0; 346 | defaultConfigurationName = Release; 347 | }; 348 | A48847DC1EA2697F00CE5843 /* Build configuration list for PBXNativeTarget "UXSDKDemo" */ = { 349 | isa = XCConfigurationList; 350 | buildConfigurations = ( 351 | A48847DD1EA2697F00CE5843 /* Debug */, 352 | A48847DE1EA2697F00CE5843 /* Release */, 353 | ); 354 | defaultConfigurationIsVisible = 0; 355 | defaultConfigurationName = Release; 356 | }; 357 | /* End XCConfigurationList section */ 358 | }; 359 | rootObject = A48847BD1EA2697F00CE5843 /* Project object */; 360 | } 361 | --------------------------------------------------------------------------------