Instance Method

addIssueWithName:date:

Creates a newsstand issue and adds it to the content library.

Declaration

- (NKIssue *)addIssueWithName:(NSString *)name date:(NSDate *)date;

Parameters

name

The name of the newsstand issue. This parameter is required and the name must be unique across all issues in the library.

date

The date the newsstand issue was released. This parameter is required.

Return Value

An instance of the NKIssue class or nil if the instance couldn’t be created.

Discussion

The created issue is automatically added to the newsstand content library. Issues are ordered by their release date. The release date of an issue can be a factor when Newsstand Kit must delete back issues because of low levels of available flash storage.

This method throws an exception if the name and date parameters are nil or are otherwise not valid objects. It also throws an exception if you pass in an issue name that is used by another issue.

See Also

Managing Library Issues

currentlyReadingIssue

Accesses or sets the newsstand issue that the user is currently reading.

- removeIssue:

Removes the specified issue from the newsstand content library.

- issueWithName:

Returns an issue of the newsstand content library specified by name.

issues

Returns the current issues of the newsstand content library.