Class

NSURLQueryItem

An object representing a single name/value pair for an item in the query portion of a URL.

Declaration

@interface NSURLQueryItem : NSObject

Overview

You use query items with the queryItems property of an NSURLComponents object.

Topics

Creating a Query Item

+ queryItemWithName:value:

Creates a new query item with the specified name and value.

- initWithName:value:

Initializes a newly allocated query item with the specified name and value.

Reading a Query Item’s Name and Value

name

The name of the query item.

value

The value for the query item.

Relationships

Inherits From

See Also

URLs

NSURL

An object that represents the location of a resource, such as an item on a remote server or the path to a local file.

NSURLComponents

An object that parses URLs into and constructs URLs from their constituent parts.