{"id":13743327,"url":"https://github.com/KieranLafferty/KLNoteViewController","last_synced_at":"2025-05-09T01:30:32.953Z","repository":{"id":6169306,"uuid":"7399104","full_name":"KieranLafferty/KLNoteViewController","owner":"KieranLafferty","description":"A view controller that organizes multiple navigation controllers in a stack inspired by Evernote 5.0 app ","archived":false,"fork":false,"pushed_at":"2016-02-12T19:51:31.000Z","size":1621,"stargazers_count":922,"open_issues_count":2,"forks_count":143,"subscribers_count":73,"default_branch":"master","last_synced_at":"2025-04-18T22:50:40.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KieranLafferty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-01T21:18:07.000Z","updated_at":"2025-02-08T12:35:53.000Z","dependencies_parsed_at":"2022-08-21T03:50:40.251Z","dependency_job_id":null,"html_url":"https://github.com/KieranLafferty/KLNoteViewController","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranLafferty%2FKLNoteViewController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranLafferty%2FKLNoteViewController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranLafferty%2FKLNoteViewController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KieranLafferty%2FKLNoteViewController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KieranLafferty","download_url":"https://codeload.github.com/KieranLafferty/KLNoteViewController/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253174152,"owners_count":21865818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:00:44.653Z","updated_at":"2025-05-09T01:30:32.159Z","avatar_url":"https://github.com/KieranLafferty.png","language":"Objective-C","readme":"KLNoteViewController\n=======\n\n\u003cimg src=\"https://raw.github.com/KieranLafferty/KLNoteViewController/master/KLNoteViewController/Images/iPhoneScreenshot.png\" width=\"50%\"/\u003e\n\nA control that organizes multiple navigation controllers in a stack inspired by Evernote 5.0 app\n\nNote: KLNoteViewController is intended for use with portrait orientation on iPhone/iPad/iPod Touch.\n\n[Check out the Demo](http://www.youtube.com/watch?v=igh9bAyjZrM\u0026feature=youtube_gdata_player) *Excuse the graphics glitches and lag due to my slow computer.*\n\n\u003c!-- MacBuildServer Install Button --\u003e\n\u003cdiv class=\"macbuildserver-block\"\u003e\n    \u003ca class=\"macbuildserver-button\" href=\"http://macbuildserver.com/project/github/build/?xcode_project=KLNoteViewController.xcodeproj\u0026amp;target=KLNoteViewController\u0026amp;repo_url=https%3A%2F%2Fgithub.com%2FKieranLafferty%2FKLNoteViewController\u0026amp;build_conf=Release\" target=\"_blank\"\u003e\u003cimg src=\"http://com.macbuildserver.github.s3-website-us-east-1.amazonaws.com/button_up.png\"/\u003e\u003c/a\u003e\u003cbr/\u003e\u003csup\u003e\u003ca href=\"http://macbuildserver.com/github/opensource/\" target=\"_blank\"\u003eby MacBuildServer\u003c/a\u003e\u003c/sup\u003e\n\u003c/div\u003e\n\u003c!-- MacBuildServer Install Button --\u003e\n\n\n## Installation ##\n\nDrag the included \u003ccode\u003eKLNoteViewController.h, KLNoteViewController.m\u003c/code\u003e files into your project. Then, include the following frameworks under *Link Binary With Libraries*:\n\n* QuartzCore.framework\n\nInstall via Cocoapods by adding the following line to your podfile\n\n\tpod 'KLNoteViewController'\n\n## Usage ##\nImport the header file and declare your controller to subclass KLNoteViewController \n\t#import \"KLNoteViewController.h\"\n\t\n\t@interface KLRootViewController : KLNoteViewController\n\nOR, Import the header file and declare your controller to conform to KLNoteViewControllerDataSource and KLNoteViewControllerDelegate\n\n\t#import \"KLNoteViewController.h\"\n\n\t@interface KLRootViewController : UIViewController \u003cKLNoteViewControllerDataSource, KLNoteViewControllerDelegate\u003e\n\t@property(nonatomic, strong) KLNoteViewController* noteViewController;\n\nImplement the required methods of the data source \n\n\t- (NSInteger)numberOfControllerCardsInNoteView:(KLNoteViewController*) noteView;\n\t- (UIViewController *)noteView:(KLNoteViewController*)noteView viewControllerForRowAtIndexPath:(NSIndexPath *)indexPath;\n\t\n\nExample - Should be changed to suit your needs\n\n\t- (NSInteger)numberOfControllerCardsInNoteView:(KLNoteViewController*) noteView {\n\t    return  [self.viewControllers count];\n\t}\n\t- (UIViewController *)noteView:(KLNoteViewController*)noteView viewControllerForRowAtIndexPath:(NSIndexPath *)indexPath {\n\t    //Get the relevant data for the navigation controller\n\t    NSDictionary* navDict = [self.navigationControllers objectAtIndex: indexPath.row];\n\n\t    //Initialize a blank uiviewcontroller for display purposes\n\t    UIStoryboard *st = [UIStoryboard storyboardWithName:[[NSBundle mainBundle].infoDictionary objectForKey:@\"UIMainStoryboardFile\"] bundle:[NSBundle mainBundle]];\n\n\t    KLCustomViewController* viewController = [st instantiateViewControllerWithIdentifier:@\"RootViewController\"];\n\t    [viewController setInfo: navDict];\n\n\t    //Return the custom view controller\n\t    return viewController;\n\t}\n\nImplement the optional delegate method to be notified when a card changes state\n\n\t//Called on any time a state change has occured - even if a state has changed to itself - (i.e. from KLControllerCardStateDefault to KLControllerCardStateDefault)\n\t-(void) noteViewController: (KLNoteViewController*) noteViewController didUpdateControllerCard:(KLControllerCard*)controllerCard toDisplayState:(KLControllerCardState) toState fromDisplayState:(KLControllerCardState) fromState;\n\n## Config ##\nThe visual appearance can be tweaked by changing the constants in \u003ccode\u003eKLNoteViewController.m\u003c/code\u003e:\n\n\t//Layout properties\n\t#define kDefaultMinimizedScalingFactor 0.98     //Amount to shrink each card from the previous one\n\t#define kDefaultMaximizedScalingFactor 1.00     //Maximum a card can be scaled to\n\t#define kDefaultNavigationBarOverlap 0.90       //Defines vertical overlap of each navigation toolbar. Slight hack that prevents rounding errors from showing the whitespace between navigation toolbars. Can be customized if require more/less packing of navigation toolbars\n\n\t//Animation properties\n\t#define kDefaultAnimationDuration 0.3           //Amount of time for the animations to occur\n\t#define kDefaultReloadHideAnimationDuration 0.4\n\t#define kDefaultReloadShowAnimationDuration 0.6\n\n\t//Position for the stack of navigation controllers to originate at\n\t#define kDefaultVerticalOrigin 100              //Vertical origin of the controller card stack. Making this value larger/smaller will make the card shift down/up.\n\n\t//Corner radius properties\n\t#define kDefaultCornerRadius 5.0\n\n\t//Shadow Properties - Note : Disabling shadows greatly improves performance and fluidity of animations\n\t#define kDefaultShadowEnabled YES\n\t#define kDefaultShadowColor [UIColor blackColor]\n\t#define kDefaultShadowOffset CGSizeMake(0, -5)\n\t#define kDefaultShadowRadius kDefaultCornerRadius\n\t#define kDefaultShadowOpacity 0.60\n\n\t//Gesture properties\n\t#define kDefaultMinimumPressDuration 0.2\n\n\n## Contact ##\n\n* [@kieran_lafferty](https://twitter.com/kieran_lafferty) on Twitter\n* [@kieranlafferty](https://github.com/kieranlafferty) on Github\n* \u003ca href=\"mailTo:kieran.lafferty@gmail.com\"\u003ekieran.lafferty [at] gmail [dot] com\u003c/a\u003e\n\n## License ##\n\nCopyright (c) 2012 Kieran Lafferty\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","funding_links":[],"categories":["Objective-C  Stars 1000以内排名整理","etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKieranLafferty%2FKLNoteViewController","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKieranLafferty%2FKLNoteViewController","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKieranLafferty%2FKLNoteViewController/lists"}