Skip to content

Commit

Permalink
[NISubtitleCellObject]
Browse files Browse the repository at this point in the history
NISubtitleCellObject needs to override its superclass's designated initializer.
  • Loading branch information
stephanemoore committed Aug 14, 2013
1 parent e969067 commit 2d5f9cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/models/src/NICellCatalog.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ typedef CGFloat (^NICellDrawRectBlock)(CGRect rect, id object, UITableViewCell*
* @ingroup TableCellCatalog
*/
@interface NISubtitleCellObject : NITitleCellObject
// Designated initializer.
- (id)initWithTitle:(NSString *)title subtitle:(NSString *)subtitle image:(UIImage *)image;
+ (id)objectWithTitle:(NSString *)title subtitle:(NSString *)subtitle image:(UIImage *)image;
- (id)initWithTitle:(NSString *)title subtitle:(NSString *)subtitle;
Expand Down
4 changes: 4 additions & 0 deletions src/models/src/NICellCatalog.m
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ - (id)initWithTitle:(NSString *)title subtitle:(NSString *)subtitle {
return [self initWithTitle:title subtitle:subtitle image:nil];
}

///////////////////////////////////////////////////////////////////////////////////////////////////
- (id)initWithTitle:(NSString *)title image:(UIImage *)image {
return [self initWithTitle:title subtitle:nil image:image];
}

///////////////////////////////////////////////////////////////////////////////////////////////////
+ (id)objectWithTitle:(NSString *)title subtitle:(NSString *)subtitle image:(UIImage *)image {
Expand Down

0 comments on commit 2d5f9cb

Please sign in to comment.