Giter Club home page Giter Club logo

klnoteviewcontroller's People

Contributors

dulacp avatar kieranlafferty avatar kurorosam avatar leoru avatar xmlsdk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

klnoteviewcontroller's Issues

UITableView height problem

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

Assigning to self before calling super in KLControllerCard

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];

iOS 7 status bar issue

In iOS 7, the positionForBar method should be implemented. However, I have tried implementing it but it doesn't work.

- (UIBarPosition)positionForBar:(id)bar {
return UIBarPositionTopAttached;
}

screen shot 2014-02-15 at 1 37 47 am

reloadDataAnimated crash app

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?

How to use it with TableViewController?

Thanks for your contribution. Although, it cannot be used with a TableViewController which includes a TableView.

There's also a positioning error when I try to do some panning.
Screen Shot 2013-03-28 at 12 15 04 AM
Screen Shot 2013-03-28 at 12 15 17 AM
Screen Shot 2013-03-28 at 12 14 31 AM
Uploading Screen Shot 2013-03-28 at 12.15.41 AM.png . . .

A question... reload controller

I love it! You have been very good. Congrats. A question ... How I can I reload/update (new data) a controller from another?

Change State of KLControllerCard

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?

<Error>: CGAffineTransformInvert: singular matrix.

Hi, Thank you for your great KLNoteViewController.
I try to use your code in my project (without xib and story board)

  1. I have MainPage subclass from KLNoteViewController
  2. I follow your tutorial step by step
  3. I got this message ": CGAffineTransformInvert: singular matrix."
  4. Nothing appear in my ViewController

I can run your example code but I can't use it in my project.
thank for help.

How can i update one of viewcontollers when i go to KLControllerCardStateDefault state?

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;
}

hidesBottomBarWhenPushed does not work

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

Pan gesture only works from the navigation bar

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.

Long press then slide the card is not working

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.

Issue when adding new view controller

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.

Scale bug take 2

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:
Schermata 2013-03-23 alle 08 11 37
~140px from status bar to first view bar
Schermata 2013-03-23 alle 08 11 44
~190px from status bar to first view bar

This is my conf:
#define kDefaultMinimizedScalingFactor 1.00

define kDefaultMaximizedScalingFactor 1.00

define kDefaultNavigationBarOverlap 0.90

define kDefaultAnimationDuration 0.3

define kDefaultReloadHideAnimationDuration 0.4

define kDefaultReloadShowAnimationDuration 0.6

#define kDefaultVerticalOrigin 250

define kDefaultCornerRadius 5.0

define kDefaultShadowEnabled YES

define kDefaultShadowColor [UIColor blackColor]

define kDefaultShadowOffset CGSizeMake(0, -5)

define kDefaultShadowRadius kDefaultCornerRadius

define kDefaultShadowOpacity 0.60

define kDefaultMinimumPressDuration 0.2

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:

Schermata 2013-03-23 alle 08 28 52

That's all :)

Disable Multiple selections

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 ?

Click on KLControllerCard set Card in fullscreen state

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?

Hide Navigation Bar on Show

Nice piece of work. I found this useful for my app:

+#define kHideNavigationBarOnShow YES

-(void) toggleStateAnimated:(BOOL) animated {
KLControllerCardState nextState = self.state == KLControllerCardStateDefault ? KLControllerCardStateFullScreen : KLControllerCardStateDefault;

+#if kHideNavigationBarOnShow == YES

  • if (nextState == KLControllerCardStateFullScreen){
  •    [self.noteViewController.navigationController setNavigationBarHidden:YES animated:YES];
    
  • } else {
  •    [self.noteViewController.navigationController setNavigationBarHidden:NO animated:YES];
    
  • }
    +#endif
  • [self setState: nextState
    animated: animated];
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.