문제

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?

도움이 되었습니까?

해결책

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

solved it for me.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top