objective c - Modal View Controller making background black -


i launching modal view controller view controller. in modal view controller displayed fine, except parent view controller goes black. when modal view controller dismissed, parent drawn. can point me going wrong? here code using:

modalvc.modalpresentationstyle = uimodalpresentationformsheet; self.navigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller: modalvc];  [currentviewcontroller presentmodalviewcontroller: self.navigationcontroller animated: yes]; self.navigationcontroller.view.frame = cgrectmake(200, 200, 320, 540); 

i found problem finally. mistake.

this culprit:

self.navigationcontroller.view.frame = cgrectmake(200, 200, 320, 540); 

it should be:

self.navigationcontroller.view.superview.frame = cgrect(200,200,320, 540); 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -