Featured post
objective c - How to open an UIView in fullscreen mode with a tabbar? -
problem.
- i have tabbar application.
- in first tab, have table.
- on click on table shows modal view.
- to go modal view first view, use
[self presentmodalviewcontroller:nw animated:yes];
the problem if click on tabbar while opened modal view, opens second view, first view's table don't work because modal view still opened althoug appear closed.
it's way open modal view in fullscreen covering tab bar?
or check if modal view closed or not view?
edit: tried of code:
nw = [[newsviewcontroller alloc] initwithnibname:@"newsviewcontroller" bundle:nil]; nw.modalinpopover = yes; nw.wantsfullscreenlayout = yes; nw.hidesbottombarwhenpushed = yes; nw.contentsizeforviewinpopover = cgsizemake(320, 480); nw.modalpresentationstyle = uimodalpresentationfullscreen; nw.view.frame = [[uiscreen mainscreen] applicationframe]; [nw.view setneedslayout];
but nothing!!! wan't go in fullscreen!!
idea please?
thanks,
alberto
if view you're presenting full screen, should obscure tab bar. said, might need re-size view programmatically it's same size uiwindow.
you should able along lines of...
[nw setframe:[[uiscreen mainscreen] applicationframe]]; [nw setneedslayout];
...to achieve this. (sorry, i'm on windows box @ moment, can't confirm this. provide tweaks if required.)
you should dismiss initial modal view via delegate method in originating class. (see "dismissing modal view controller" section of apple's view controller programming guide ios.) originating class dispose of modal view.
- Get link
- X
- Other Apps
Comments
Post a Comment