implementing a photo browser view

271 Views Asked by At

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?

2

There are 2 best solutions below

1
On BEST ANSWER
[self addChildViewController:self.browser];
[[self view] addSubview:[self.browser view]];
[self.browser didMoveToParentViewController:self];

solved it for me.

5
On

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.