如何通过AWS解析IOS应用程序

时间:2017-04-19 13:56:08

标签: ios amazon-web-services parsing

所有

我想通过AWS解析IOS应用程序。 我看了[http://www.youtube.com/watch?v=sd2bphvVzGy][1]

这是Appdelegate.swift文件。

...

$persons = array();
while($row = mysqli_fetch_array($answer)) 
{
    // Using [] appends the content of $row to the $persons array.
    $persons[] = $row;
}

...

我想知道如何从AWS获取“applicationId”和“Clientkey”的信息。我无法通过互联网获取信息。有人帮帮我吗?

如果我运行它。 有错误的回应。

import UIKit
import Parse

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        let parseConfig = ParseClientConfiguration{ (ParseMutableClientConfiguration) in

            ParseMutableClientConfiguration.applicationId = "myappid"
            ParseMutableClientConfiguration.clientKey = "mymasterkey"
            ParseMutableClientConfiguration.server = "http://ec2-13-124-93-153.ap-northeast-2.compute.amazonaws.com/parse"
        // Override point for customization after application launch.
        }

        Parse.initialize(with: parseConfig)
        return true
    }

    func applicationWillResignActive(_ application: UIApplication) {
        // 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.
        // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
    }

    func applicationDidEnterBackground(_ application: UIApplication) {
        // 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.
        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    }

    func applicationWillEnterForeground(_ application: UIApplication) {
        // 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.
    }

    func applicationDidBecomeActive(_ application: UIApplication) {
        // 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.
    }

    func applicationWillTerminate(_ application: UIApplication) {
        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
    }


}
你能告诉我什么是问题吗?

最好的问候。

0 个答案:

没有答案