iOS Developer Library

Developer

NewsstandKit Framework Reference NSURLConnection NewsstandKit Additions

Options
Deployment Target:

On This Page
Language:

NSURLConnection

Inheritance


Not Applicable

Conforms To


  • NSObject (NSObject)

Import Statement


Swift

import NewsstandKit

Objective-C

@import NewsstandKit;

The Newsstand Kit framework adds a property to this class through the NKAssetDownloadAdditions category.

The newsstandAssetDownload property gives an a convenient way to access the NKAssetDownload object associated an NSURLConnection object.

  • The asset-download object associated with the URL connection.

    Declaration

    Swift

    weak var newsstandAssetDownload: NKAssetDownload! { get }

    Objective-C

    @property(readonly, weak) NKAssetDownload *newsstandAssetDownload

    Discussion

    Through the NKAssetDownload instance you can access the NKIssue and NSURLRequest objects associated with the asset.

    Import Statement

    Objective-C

    @import NewsstandKit;

    Swift

    import NewsstandKit

    Availability

    Available in iOS 5.0 and later.