Yoav Schwartz
Yoav Schwartz

Reputation: 2027

implementing a photo browser view

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?

Upvotes: 0

Views: 266

Answers (2)

Yoav Schwartz
Yoav Schwartz

Reputation: 2027

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

solved it for me.

Upvotes: 1

vaibhav_15
vaibhav_15

Reputation: 351

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.

Upvotes: 0

Related Questions