PaperFold-for-iOS icon indicating copy to clipboard operation
PaperFold-for-iOS copied to clipboard

UINavigationController pushViewController

Open smoothdvd opened this issue 13 years ago • 6 comments

screenshot

In the demo, when I push a detail view from centerTableView, I found this dark area.

Is it for "fold effect"?

Can you tell me how to remove it?

smoothdvd avatar Aug 25 '12 14:08 smoothdvd

Hi,

I just updated the code. Should be fixed now. Can you check?

Sent from my iPad

On 25 Aug, 2012, at 10:53 PM, smoothdvd [email protected] wrote:

In the demo, when I push a detail view from centerTableView, I found this dark area.

Is it for "fold effect"?

Can you tell me how to remove it?

— Reply to this email directly or view it on GitHub.

honcheng avatar Aug 25 '12 14:08 honcheng

Thanks! So I need use PaperFoldNavigationController?

smoothdvd avatar Aug 25 '12 16:08 smoothdvd

Yeah

Sent from my iPhone

On 26 Aug, 2012, at 12:07 AM, smoothdvd [email protected] wrote:

Thanks! So I need use PaperFoldNavigationController?

— Reply to this email directly or view it on GitHub.

honcheng avatar Aug 25 '12 23:08 honcheng

I want to use full screen's width for right view, now I found a white line at most of left. So, I set width to screen's width + 1 pixel to solve it. Any smart solution? screenshot

smoothdvd avatar Aug 28 '12 04:08 smoothdvd

which demo are you using by the way?

honcheng avatar Aug 28 '12 04:08 honcheng

PaperFold-ContainmentView, my code

// Add root view controller
RootViewController *rootViewController = [[RootViewController alloc] initWithNibName:nil bundle:nil];

UINavigationController *navigationController = [[UINavigationController alloc]
                        initWithRootViewController:rootViewController];
navigationController.navigationBar.hidden = YES;

self.paperFoldNavigationController = [[PaperFoldNavigationController alloc] initWithRootViewController:navigationController];
self.paperFoldNavigationController.paperFoldView.interval = 0.03;
self.window.rootViewController = self.paperFoldNavigationController;

// Right View Controller (Map)
MKMapViewController *mkMapViewController = [[MKMapViewController alloc] initWithNibName:nil bundle:nil];
UINavigationController *rightNavigationController = [[UINavigationController alloc] initWithRootViewController:mkMapViewController];
rightNavigationController.navigationBar.hidden = YES;
[self.paperFoldNavigationController setRightViewController:rightNavigationController width:screenBounds.size.width + 1 rightViewFoldCount:3 rightViewPullFactor:1.0];

smoothdvd avatar Aug 28 '12 05:08 smoothdvd