I am new to ios.
I don’t know how to make a view controller to display when i press a cell in tableview.
In this example it changes the bg and imageview.
I don’t know how to link to a view controller.
Please help me in getting success.
So interesting problem with the code that I learned from your app. I rewrote the code in Objective-C, then added some code so the menu go slide to the right of the screen and shrink as well.
See below:
// 3D side menu code
// if (![ApplicationSettings isIOS7]) {
// self.sideMenuView.layer.transform = [self transformForFraction:fraction];
// self.sideMenuView.alpha = fraction;
// }
// set menu to shrink to the right
self.bodyView.transform= CGAffineTransformMakeScale(1 - (fraction * 0.3), 1 - (fraction * 0.3));
This code is perfect especially when you close the menu and use
self.bodyView.transform = CGAffineTransformIdentity; to reset the right view.
HOWEVER, I have this terrible bug that I just can’t seem to fix! If I have a link on the side menu that forces my app to go into the background because I"m going to a weblink. When I come back, the body view graphics are not centred properly in the view. If I don’t leave the app, it’s perfect. If I open up the menu when it’s messed up and press the same menu item to close the side menu, the view is perfect again. Any help?
The bug with your side menu system code is very vexing.
I don’t think it’s a bug in my side menu code—I can put it in the background and come back to it, and it looks the same. I think it’s because you tap a cell to switch to another app: if you stayed in the Taasky app, tapping a cell hides the menu, shifting the detail view to the left, so the image is centred. When your app switches to another app, the menu hides, but the offset doesn’t get reset.
Try this: showingMenu is true when you select the cell that goes to the weblink. Before switching to the other app, set showingMenu to false
Thank you for your response. I’ve tried all manners of not closing the menu, leaving it over before I leave. Still no luck…it looks like this. Is there’s a more private way to show you the picture? Of what is happening? That would be great!
Oh found my issue…we do a parse method for the cell before I was closing the menu…when I put the menu closing before I parse the cell it’s fine!!!
i follow the tutorial, everything working fine and perfect the only problem i’m facing is that when there is an in-call bar top of screen, the scrollview will scroll and sidemenu will disappear also i’m using google ads in my app, whenever its subview to my mainview scrollview will scroll by it self again
This tutorial is more than six months old so questions are no longer supported at the moment for it. We will update it as soon as possible. Thank you! :]