stefanoa / SASlideMenu

Library to create iOS sliding menu compatible with storyboards
568 stars 118 forks source link

How to implement by code #10

Open johnrickman opened 11 years ago

johnrickman commented 11 years ago

Hi.

I haven't used storyboard before and have no intent on doing so. So my question is how can I implement this awesome solution programmatically?

Thanks

stefanoa commented 11 years ago

You should modify the SASlideMenuDynamicViewController method:


-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

to avoid calling the segues and instead instantiate your selected view controller and switch to it.
johnrickman commented 11 years ago

Hi Stefona, Thanks for your reply. Although probably helpful, I need more code to get me started. Do you have an example project that doesn't use stpryboard?

d99101 commented 11 years ago

Hi Stefona, I really like your component, I am interested also in using your slidemenu without segues.

Thanks!

stefanoa commented 11 years ago

I will have a look at it this week-end

bnk commented 11 years ago

Hi,

I will be also interested in using your lib programmatically (without segues).

Thanks

stefanoa commented 11 years ago

SASlideMenu uses segues in different part of the code thus it is not straightforward to modify it for use without storyboard.

bnk commented 11 years ago

Yes, I worked on it but too much modifications are needed. Thank you for your reply.

stefanoa commented 11 years ago

If I find the time I should be able to refactor the code in order to allow it.