KieranLafferty / KLNoteViewController

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

A question... reload controller #3

Closed nokai closed 11 years ago

nokai commented 11 years ago

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

KieranLafferty commented 11 years ago

Hello Nokai, the control follows the same pattern as UITableView. Simply call the -reloadData method and it will grab the data from the defined datasource methods below:

//Called when the NoteViewController needs to know how many controller cards to expect

Be sure to update the data that gets sent to these methods BEFORE calling the reloadData.

nokai commented 11 years ago

Hello

Sorry but I find impossible from a viewcontroller already loaded, call another viewcontroller loaded and change.

Nor do I find the way from one viewcontroller up, call another and upload.

Maybe I'm too clumsy.

If you put me I'd appreciate an example.

thank you very much

KieranLafferty commented 11 years ago

Hey Nokai, I added a function that performs a reload in an animated fashion:

-(void) reloadDataAnimated:(BOOL) animated;

Try this out on the latest source in both animated = YES, and animated = NO. Let me know how it works for you.

nokai commented 11 years ago

Ok, I understand that. But my question was called a KLControllerCard from another (KLCustomViewController)

I want to pass data from one to another.

Thanks again

nokai commented 11 years ago

I've got ... you can close issue

Greetings