objective c - Help to find the point where method is triggered -
i use ttmessagecontroller in project. display modally. navigation bar has default 2 buttons, 1 dismiss composer , other send message.
the problem after user clicked on "send" view gets closed automatically.
here method ttmessagecontroller.m file closes view
- (void)cancel:(bool)confirmifnecessary { if (confirmifnecessary && ![self messageshouldcancel]) { [self confirmcancellation]; } else { if([_delegate respondstoselector:@selector(composecontrollerwillcancel:)]){ [_delegate composecontrollerwillcancel:self]; } [self dismissmodalviewcontroller]; } }
so [self dismissmodalviewcontroller]; closes view. method called in code send method. can not see why view closes since there no cancel call in send method.
please have @ source: https://github.com/facebook/three20/blob/master/src/three20ui/sources/ttmessagecontroller.m
do find anything?
you can set symbolic breakpoint in xcode, halt whenever -dismissmodalviewcontroller message sent. if @ stack trace, might determine when it's getting called (this may new feature of xcode 4).
Comments
Post a Comment