Search code examples
iosuiviewcontrollermwphotobrowser

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?


Solution

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

    solved it for me.