Skip to content

Instantly share code, notes, and snippets.

@qnoid
Last active August 29, 2015 13:57
Show Gist options
  • Save qnoid/57c50a629a984209c6b5 to your computer and use it in GitHub Desktop.
Save qnoid/57c50a629a984209c6b5 to your computer and use it in GitHub Desktop.
@protocol VSTimelineViewController
+(instancetype)newTimelineViewControllerWithNotes
{
VSTimelineViewController *timelineViewController = [[VSTimelineViewController alloc] init]
timelineViewController = @"Timeline";
timelineViewController.tag = //
timelineViewController.notesFetcher = //
timelineViewController.canReorderNotes = //
timelineViewController.canCreateNewNotes = //
timelineViewController.searchesArchivedNotesOnly = //
timelineViewController.noNotesImageName = //
}
+(instancetype)newTimelineViewControllerWithTag:(VSTag *tag)
{
VSTimelineViewController *timelineViewController = [[VSTimelineViewController alloc] init]
timelineViewController = @"Notes for tag";
timelineViewController.tag = tag
timelineViewController.notesFetcher = //
timelineViewController.canReorderNotes = //
timelineViewController.canCreateNewNotes = //
timelineViewController.searchesArchivedNotesOnly = //
timelineViewController.noNotesImageName = //
}
+(instancetype)newTimelineViewControllerWithArchiveNotes
{
VSTimelineViewController *timelineViewController = [[VSTimelineViewController alloc] init]
timelineViewController = @"Archive notes";
timelineViewController.tag = //
timelineViewController.notesFetcher = //
timelineViewController.canReorderNotes = //
timelineViewController.canCreateNewNotes = //
timelineViewController.searchesArchivedNotesOnly = //
timelineViewController.noNotesImageName = //
}
@end
@Janak-Nirmal
Copy link

May be you missed ?

timelineViewController.title = @"Timeline";

instead of

timelineViewController = @"Timeline";

@joanromano
Copy link

@implementation

instead of

@protocol

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment