ipad - UIModalPresentationFormsheet action does not refresh the main view -
i have table list of employee data. user can select employee , approve/reject employee's application. if rejected user supposed select reason rejection , enter comments. using uimodalpresentationformsheet display view uitextfield, uipicker , 2 buttons(reject & cancel).
when user taps on reject button, make web-service call change status in server , change value in local object holding employee data. when reject action tapped, able perform both actions, main screen in background not refreshed. when try push rejection screen normally(not uimodalpresentationformsheet) works fine.
i have tried calling function force refresh view still doesn't work. can please issue.
thank you...
use nsnotificationcenter
.
[[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(updatesomething:) name:@"updatesomething" object:nil]; [[nsnotificationcenter defaultcenter] postnotificationname:@"updatesomething" object:nil];
Comments
Post a Comment