Question

I'm looking for a good photo browser controller that will browse photos, will support zooming and rotation. I found mwphotoviewer which seems to be the popular option, and its indeed very good. but is there any way to use it in as a tab in a tabbarviewcontroller and not as to push it from a navigationviewcontroller?

so far in every project that I have seen, they use either a

[self.navigationController pushViewController:browser animated:YES];

or

[self presentModalViewController:nc animated:YES];

I just want it to be there,

any ideas?

Was it helpful?

Solution

[self addChildViewController:self.browser];
[[self view] addSubview:[self.browser view]];
[self.browser didMoveToParentViewController:self];

solved it for me.

OTHER TIPS

Instead of UINavigationController you can use UITabBarController and set it view controller as the one one in which you are supposed to browse the photos.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top