小编hgc*_*hez的帖子

从IOS应用程序使用iTunes导入和导出文件

我使用Xcode 7和Swift 2来创建一个IOS应用程序.我希望我的用户在我的应用程序中导入文件并通过连接到iTunes恢复IOS设备.我必须可以从我的代码访问该文件...这是一个提供此原则的示例应用程序(VLC,Excel ...).这是一个供您理解的屏幕!;) 在此输入图像描述

import ios swift

4
推荐指数
1
解决办法
4792
查看次数

无法使用索引类型int下标[CLPlacemark]类型的值

我想检索当前位置.我在swift Xcode 7上工作.我看了PLUSIEUR教程,但每次使用相同的方法.这是我的代码和我的错误:!

错误:无法使用索引类型int下标[CLPlacemark]类型的值

import UIKit
import CoreLocation

class ViewController: UIViewController, CLLocationManagerDelegate {

    let LocationManager = CLLocationManager()

override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.

    self.LocationManager.delegate = self
    self.LocationManager.desiredAccuracy = kCLLocationAccuracyBest
    self.LocationManager.requestWhenInUseAuthorization()
    self.LocationManager.startUpdatingLocation()

}

override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
    // Dispose of any resources that can be recreated.
}



func locationManager(manager: CLLocationManager, didUpdateLocations locations: [AnyObject]) {
    CLGeocoder().reverseGeocodeLocation(manager.location!, completionHandler: { (placemarks, error) -> Void in

        if (error != nil) {
            print("Error") …
Run Code Online (Sandbox Code Playgroud)

xcode ios swift ios8 xcode7

3
推荐指数
1
解决办法
2588
查看次数

标签 统计

ios ×2

swift ×2

import ×1

ios8 ×1

xcode ×1

xcode7 ×1