Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

objective c - How to open an UIView in fullscreen mode with a tabbar? -



problem.

  1. i have tabbar application.
  2. in first tab, have table.
  3. on click on table shows modal view.
  4. 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.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -