KieranLafferty / KLNoteViewController

A view controller that organizes multiple navigation controllers in a stack inspired by Evernote 5.0 app
Other
923 stars 144 forks source link

Change State of KLControllerCard #4

Closed paoloandrea closed 11 years ago

paoloandrea commented 11 years ago

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?

KieranLafferty commented 11 years ago

Hello Paolo,

Not sure what you mean by "in a view if it is open" but you can change the state by getting a reference to the KLControllerCard that you wish to and performing the following

//Arbitrarily get the first card
KLControllerCard* card = [noteView.controllerCards objectAtIndex: 0];
[card setState: KLControllerCardStateDefault animated: YES];

Hopefully this answers your question

paoloandrea commented 11 years ago

Thank you. That work!