iOS Developer Library

Developer

Media Player Framework Reference MPMediaQuerySection Class Reference

Options
Deployment Target:

On This Page
Language:

MPMediaQuerySection

A media query section represents a range of media items or media item collections from within an iPod library media query. You can use sections when displaying a query’s items or collections in your app’s user interface.

You obtain an array of media query sections by using the itemSections or collectionSections properties of a media query (an instance of the MPMediaQuery class). The property values of a media query section are read-only.

  • The localized title of the media query section.

    Declaration

    Swift

    var title: String { get }

    Objective-C

    @property(nonatomic, copy, readonly) NSString *title

    Availability

    Available in iOS 4.2 and later.

  • The range in the media query's items or collections array that is represented by the media query section.

    Declaration

    Swift

    var range: NSRange { get }

    Objective-C

    @property(nonatomic, assign, readonly) NSRange range

    Availability

    Available in iOS 4.2 and later.