iphone - Hide detail View -
i need hide detail view shown when clicked on tableviewitem
- (ibaction)done:(id)sender { [self.delegate orderdetailsviewdidfinish:self]; }
it connected in the, xib , .h view doesnot close, loaded via code , loads great:
//initialize detail view controller , display it. orderdetailsview *dvcontroller = [[orderdetailsview alloc] initwithnibname:@"orderdetailsview" bundle:[nsbundle mainbundle]]; dvcontroller.selectedorder = (@"%@",selectedorder); [self presentmodalviewcontroller:dvcontroller animated:yes]; [dvcontroller release]; dvcontroller = nil;
the trouble comes when closing it, please not ahve correct .h in detail view
thanks
mason
if present controller modalviewcontroller when hiding need this:
- (ibaction)done:(id)sender { [self.parentviewcontroller dismissmodalviewcontrolleranimated:yes]; }
when use modals parent-child relation created between 2 controller (the newly presented child) can call previous controller self.parentviewcontroller
new controller ;)
Comments
Post a Comment