iphone - how to load a popup from an uibutton in uitableviewcell -
in app i've got view controller table view.
inside of 1 uitableviewcell there's uibutton which, on click, should show popup view.
inside project i've imported kgmodal framework popups works in other view controllers , if try show popup view here, seems tries show view inside cell, bad results.
does know how can solve it?
i think problem should "traverse" hierarchy , go tableview's superviewcontroller , show it, don't know how , don't know if it's right solution problem.
if need can post without problem.
i can code "should" show popup view :
[[kgmodal sharedinstance] showwithcontentview:_vistapopup andanimated:yes]; thank much.
you have problem, because must place popup creation code in method of tableviewcontroller, not of cellviewcontroller. in button's 'touchupinside' callback want invoke tableviewcontroller's method. , question actually: "how reach tableviewcontroller object tablecellviewcontroller child?" looking @ comments suppose we're agreed that.
try take @ this topic.
i ed marty's answer: either reaching tableviewcontroller object appdelegate, or singleton solution. luck!
Comments
Post a Comment