Book Class Reference
Inherits from | NSManagedObject |
Declared in | Book.h Book.m |
Tasks
Create Methods
-
+ bookWithISBN:title:author:publishDate:cover:inManagedObjectContext:
Method that creates a Book object.
-
– publishDateAsString
Method that converts publishDate to string.
-
– addDateAsString
Method that converts addDate to string.
Class Methods
bookWithISBN:title:author:publishDate:cover:inManagedObjectContext:
Method that creates a Book object.
+ (Book *)bookWithISBN:(NSString *)isbn title:(NSString *)title author:(NSString *)author publishDate:(NSDate *)publishDate cover:(NSString *)cover inManagedObjectContext:(NSManagedObjectContext *)context
Parameters
- isbn
ISBN number of the book.
- title
Title of the book.
- author
Author of the book.
- publishDate
The date the book published.
- cover
The image URL of the book cover.
- context
Managed object context of the database.
Return Value
Returns the Book object that is created.
Discussion
Method that creates a Book object.
Declared In
Book+Create.h