kieranlafferty / klnoteviewcontroller Goto Github PK
View Code? Open in Web Editor NEWA view controller that organizes multiple navigation controllers in a stack inspired by Evernote 5.0 app
License: Other
A view controller that organizes multiple navigation controllers in a stack inspired by Evernote 5.0 app
License: Other
A typical example would be
when we click a button or bar item button inside of one of the KLNoteView view controllers, then the KLNoteViewController will show back all the ViewControllers (like when we open for the first time) with animation.
Hello,
Thanks for the great UI.
I have a problem a bit here.
So here is my condition right now:
I have a ViewController subclassed from UITableViewController and added to KLNoteViewControllers viewControllers
This UITableView has custom row with height equals 100, and have around 20 items, so there is scrollbar show up.
The problem is the last item, is 'cut off', probably because of UITableView does not honor UINavigationBar height and calculate correctly.
But if i try using 'normal way' to add it to UINavigationBar, the UITableView Height does respond correctly.
// Normal way add to UINavigationController, UITableView in CafeViewController height does calculate correctly
CafeViewController *cafeViewController = [[CafeViewController alloc] init];
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:cafeViewController];
self.window.rootViewController = navController;
I hope you understand what i mean.
I don't know if it's a bug or not.
Thank you
Just curious why you assigning to self before calling super in the init of KLControllerCard?
@implementation KLControllerCard
-(id) initWithNoteViewController: (KLNoteViewController*) noteView navigationController:(UINavigationController*) navigationController index:(NSInteger) _index {
self.noteViewController = noteView;
self.navigationController = navigationController;
//Set the instance variables
index = _index;
originY = [noteView defaultVerticalOriginForControllerCard:self
atIndex: index];
How to make an Array of UIViews like a menu, for example on the notebooks tag I would like to bound a view named NotebookViewController.
Thanks
Hello, tks for the control, it is amazing! but i face a strange situation, I have a button that when clicked in view triggers [self reloadDataAnimated: YES] and each time it is clicked it decreases the performance of the application and after a few clicks makes app crash. What am I doing wrong?
Hi,
how can mantain the correct view size in NoteViewController when rotated the iPad's interface?
Thank you
I love it! You have been very good. Congrats. A question ... How I can I reload/update (new data) a controller from another?
Hi, thank for you work, is a beautiful component.
I've a question:
How can I change KLControllerCardState in a view if it is open?
Hi, Thank you for your great KLNoteViewController.
I try to use your code in my project (without xib and story board)
I can run your example code but I can't use it in my project.
thank for help.
Hi! I want to delete buttons from navbar in contollers when i go to KLControllerCardStateDefault state, but I did not get.
I tried to do:
-(void) noteViewController: (KLNoteViewController_) noteViewController didUpdateControllerCard:(KLControllerCard_)controllerCard toDisplayState:(KLControllerCardState) toState fromDisplayState:(KLControllerCardState) fromState {
if (toState == KLControllerCardStateDefault) {
NSIndexPath path = [self indexPathForControllerCard:controllerCard];
TDListViewController viewController = (TDListViewController *)[self noteView:self viewControllerForRowAtIndexPath:path];
[viewContoller updateUI];
}
}
// updateUI in TDListViewController
-(void)updateUI1 {
self.navigationItem.leftBarButtonItem = nil;
}
If you attach the KLNoteViewController to a UITabBarController then you cannot do the hidesBottomBarWhenPushed
on the child view when pushing to navigationController.
I've searched through google and cannot found way to fix this, though i know the reason because UINavigationController was not the direct child of UITabbarController.
Right now my only way to do it is manually hiding the tabbar when pushing the view, but again it does not looks when the native do it.
Any idea for this, probably some kind of way to relay this hidesBottomBarWhenPushed message to the UITabBar?
Thanks
Sometimes for really simple card controllers it can be great to be able to move/slide them from wherever the user want to.
To be able to close the card controller from the whole navigationController.view
on not only the navigationController.navigationBar
.
I'll add again another configuration option, and make it backward compatible of course.
When you perform a long press on a card you aren't able to slide it anymore, it's like the UI is "freezing" but it's not. In fact the long press seems to take the lead on the pan gesture handle by the method didPerformPanGesture:
.
A good solution would be to add a new boolean configuration enableLongPress
that would be true by default to be backward compatible, and that would decide if we instantiate or not a UILongPressGestureRecognizer
.
This way everybody is happy I think.
I'll post a commit for that suggestion today.
Hi, thank's to help me.
Now i've another question.
In the noteView in first plane i have a tableView.
How can i detect the size of the noteView closed and the size of the noteView opened.
Thank's so much.
p
I have added a new view controller for the each card. I am experiencing an issue in one of the view controllers. When I present the MFMailComposeViewController, the mail composer doesn't respond to any touches. I cant dismiss or send an email. I cant edit the content of the to, subject of email body.
Strange things are also happening when I present the twitter and facebook composer. With the facebook view composer, I can modify the text but the 'Cancel' and 'Post' buttons are not enabled. Whereas the twitter composer works.
I've update KLNoteViewController on my project with the last version (Bug fixed for #16).
It's pixel perfect on portrait, it's still buggy on landscape:
~140px from status bar to first view bar
~190px from status bar to first view bar
This is my conf:
#define kDefaultMinimizedScalingFactor 1.00
#define kDefaultVerticalOrigin 250
With default values this issue is still present (only in landscape) but is less visible even if after some rotation some defects are still present:
That's all :)
when selecting a card and moving it , i can also select another one and move it simultaneously and it is an issue because once the app crashed . is there a way i can edit the code to allow only one card to be selected at a time ?
A question:
How can I manage the following:
User clicks anywhere on ViewController in KLControllerCardStateDefault -> ViewController state change to KLControllerCardStateFullScreen
Similar to Evernote app. Can you give me some hints?
Nice piece of work. I found this useful for my app:
+#define kHideNavigationBarOnShow YES
+#if kHideNavigationBarOnShow == YES
[self.noteViewController.navigationController setNavigationBarHidden:YES animated:YES];
[self.noteViewController.navigationController setNavigationBarHidden:NO animated:YES];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.